Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼7.54ms] Passed 4 tests
Analyzing server-side resources used by inSIM
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.99 ▼2.79 |
Dashboard /wp-admin | 3.37 ▲0.02 | 51.20 ▼15.94 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 55.36 ▲3.99 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.86 ▼12.67 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 38.73 ▲1.23 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
inSIM: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.39 ▼0.17 | 1.73 ▼0.04 | 45.88 ▲0.81 |
Dashboard /wp-admin | 2,192 ▲12 | 5.54 ▼0.13 | 90.52 ▼7.31 | 40.54 ▼2.82 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.05 | 38.99 ▼2.33 | 35.77 ▼1.13 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.12 ▼0.48 | 688.19 ▼31.93 | 54.93 ▲1.74 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.23 ▲0.04 | 103.69 ▼2.76 | 46.76 ▲1.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/insim/public/partials/sim-to-shop-public-display.php
- 22× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/insim/admin/API_SMS_PHP_SimToShop/config.inc.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/insim/admin/API_SMS_PHP_SimToShop/config.inc.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/insim/admin/API_SMS_PHP_SimToShop/config.inc.php:119
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/insim/includes/sim-to-shop-activator.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/insim/admin/API_SMS_PHP_SimToShop/config.inc.php:119
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/insim/admin/sim-to-shop-campaign-list.php on line 26
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/insim/includes/sim-to-shop-activator.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/insim/admin/sim-to-shop-recipient-list.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/insim/admin/API_SMS_PHP_SimToShop/config.inc.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/insim/admin/API_SMS_PHP_SimToShop/config.inc.php:119
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (17 tag instead of maximum 10)
insim/inSIM.php 85% from 13 tests
This is the main PHP file of "inSIM" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("insim.php" instead of "inSIM.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin7,549 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 1,199 | 1,699 | 5,790 |
CSS | 4 | 33 | 57 | 1,144 |
JavaScript | 2 | 84 | 98 | 615 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 28.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 138.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 241 | |
▷ Static methods | 50 | 20.75% |
▷ Public methods | 214 | 88.80% |
▷ Protected methods | 5 | 2.07% |
▷ Private methods | 22 | 9.13% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 85 | |
▷ Global constants | 83 | 97.65% |
▷ Class constants | 2 | 2.35% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/solo_new0.png | 38.40KB | 11.88KB | ▼ 69.06% |
admin/img/yes.png | 0.53KB | 0.58KB | 0.00% |
admin/img/to_top.png | 60.17KB | 19.50KB | ▼ 67.59% |
admin/img/information.png | 0.76KB | 0.83KB | 0.00% |
admin/img/no.png | 0.74KB | 0.74KB | 0.00% |