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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.45 ▼3.14 |
Dashboard /wp-admin | 3.31 ▼0.04 | 52.80 ▼13.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.72 ▲1.59 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.06 ▼17.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.53 ▲0.15 | 1.66 ▲0.05 | 42.48 ▲0.69 |
Dashboard /wp-admin | 2,195 ▲15 | 5.65 ▼0.03 | 92.16 ▲0.40 | 43.00 ▲1.65 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.06 ▲0.04 | 35.78 ▼0.25 | 35.11 ▲0.58 |
Add New Post /wp-admin/post-new.php | 1,526 ▼20 | 18.00 ▼5.34 | 680.40 ▲11.11 | 55.10 ▼0.87 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.17 ▼0.02 | 96.98 ▼15.87 | 42.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 206 | 439 | 1,057 |
JSON | 2 | 0 | 0 | 24 |
CSS | 1 | 0 | 0 | 3 |
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 code | 0.36 |
Average class complexity | 10.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 23 | 29.87% |
▷ Public methods | 71 | 92.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.79% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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