Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.94ms] Passed 4 tests
A check of server-side resources used by SMM API
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.08 ▼2.03 |
Dashboard /wp-admin | 3.35 ▼0.00 | 43.83 ▼22.25 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.28 ▲1.86 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.93 ▼13.33 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.62 ▲3.21 |
Server storage [IO: ▲2.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 214 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
smm_recently_activated |
Browser metrics Passed 4 tests
A check of browser resources used by SMM API
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.40 ▲0.03 | 1.89 ▲0.09 | 36.80 ▼6.97 |
Dashboard /wp-admin | 2,204 ▲35 | 5.58 ▼0.27 | 89.54 ▼11.01 | 41.39 ▲2.82 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 2.02 ▼0.00 | 39.17 ▼0.77 | 37.11 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,541 ▲4 | 18.46 ▲0.37 | 616.30 ▲9.12 | 72.48 ▲1.10 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.18 ▲0.03 | 93.99 ▲2.19 | 41.86 ▲0.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- smm_recently_activated
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/smm-api/plugin-fw/lib/smm-cpt-unlimited.php
- 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant SMMS_SMAPI_INIT - assumed 'SMMS_SMAPI_INIT' (this will throw an Error in a future version of PHP) in wp-content/plugins/smm-api/plugin-options/subscriptions-options.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/smm-api/plugin-fw/templates/panel/woocommerce/woocommerce-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/smm-api/plugin-fw/lib/promo/smms-promo.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smm-api/plugin-fw/templates/upgrade/changelog.php:20
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/smm-api/templates/admin/premium.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/smm-api/plugin-options/privacy-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/smm-api/plugin-fw/templates/upgrade/error.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/smm-api/plugin-fw/templates/panel/woocommerce/woocommerce-option-row.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/smm-api/plugin-options/subscriptions-options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/smm-api/plugin-fw/templates/sysinfo/system-information-panel.php:11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: api panel, smm panel, reseller panel, social panel
smm-api/init.php 77% from 13 tests
The entry point to "SMM API" version 6.0.9 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 160 characters long)
- Requires at least: Required version must match the one declared in readme.txt ("4.9.9" instead of "3.7.1")
- Main file name: It is recommended to name the main PHP file as the plugin slug ("smm-api.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected34,967 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 118 | 4,013 | 6,285 | 16,948 |
JavaScript | 38 | 3,169 | 7,921 | 11,574 |
CSS | 13 | 888 | 226 | 5,156 |
PO File | 2 | 534 | 977 | 1,183 |
XML | 1 | 1 | 2 | 61 |
SVG | 3 | 0 | 1 | 45 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 43.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 97.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 43 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 496 | |
▷ Static methods | 58 | 11.69% |
▷ Public methods | 457 | 92.14% |
▷ Protected methods | 21 | 4.23% |
▷ Private methods | 18 | 3.63% |
Functions | 143 | |
▷ Named functions | 142 | 99.30% |
▷ Anonymous functions | 1 | 0.70% |
Constants | 20 | |
▷ Global constants | 20 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
25 compressed PNG files occupy 0.17MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
plugin-fw/assets/images/spinner.png | 0.15KB | 0.14KB | ▼ 5.88% |
assets/images/upgrade.png | 1.65KB | 1.17KB | ▼ 28.95% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |