84% sell-esim

Code Review | Sell eSIM

WordPress plugin Sell eSIM scored84%from 54 tests.

About plugin

  • Plugin page: sell-esim
  • Plugin version: 1.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 12, 2022
  • Latest release: Dec 12, 2022
  • Number of updates: 13
  • Update frequency: every 0.7 days
  • Top authors: tsimaboy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /182 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.15ms] Passed 4 tests

Server-side resources used by Sell eSIM
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.45 ▼3.14
Dashboard /wp-admin3.31 ▼0.0452.80 ▼13.53
Posts /wp-admin/edit.php3.36 ▲0.0047.72 ▲1.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.06 ▼17.41
Media Library /wp-admin/upload.php3.23 ▲0.0039.69 ▲1.49

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Sell eSIM: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.53 ▲0.151.66 ▲0.0542.48 ▲0.69
Dashboard /wp-admin2,195 ▲155.65 ▼0.0392.16 ▲0.4043.00 ▲1.65
Posts /wp-admin/edit.php2,100 ▼02.06 ▲0.0435.78 ▼0.2535.11 ▲0.58
Add New Post /wp-admin/post-new.php1,526 ▼2018.00 ▼5.34680.40 ▲11.1155.10 ▼0.87
Media Library /wp-admin/upload.php1,397 ▼34.17 ▼0.0296.98 ▼15.8742.30 ▼5.04

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/sell-esim/templates/esim-dataplan-list.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/sell-esim/templates/settings.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: data plan, tsim, mobile network plan, sell esim, flow plan...

sell-esim/sell-esim.php Passed 13 tests

The main file in "Sell eSIM" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
Sell eSIM Plugin allows you to sell eSIMs in your WooCommerce based store.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,084 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP212064391,057
JSON20024
CSS1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.64
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods77
▷ Static methods2329.87%
▷ Public methods7192.21%
▷ Protected methods00.00%
▷ Private methods67.79%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin