Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.89MB] [CPU: ▲1.60ms] Passed 4 tests
An overview of server-side resources used by Sell License Key Codes with WordPress PHP-KeyCodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 46.06 ▲6.01 |
Dashboard /wp-admin | 4.33 ▲1.03 | 58.27 ▲5.19 |
Posts /wp-admin/edit.php | 4.38 ▲1.03 | 56.77 ▲8.79 |
Add New Post /wp-admin/post-new.php | 6.94 ▲1.05 | 91.80 ▼13.60 |
Media Library /wp-admin/upload.php | 4.25 ▲1.02 | 48.62 ▲12.94 |
Settings /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_settings | 4.16 | 40.97 |
KeyCodes /wp-admin/admin.php?page=withinweb-php-keycodes/admin/classes/admindisplay.php | 4.16 | 41.73 |
Sales Details /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_salesdetails | 4.13 | 37.45 |
Delete Item /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_deleteitem | 4.13 | 39.44 |
Product button code /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_buttoncode | 4.13 | 40.39 |
Sales /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_sales | 4.16 | 38.86 |
Edit Item /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_edititem | 4.13 | 36.82 |
Local Test /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_localtest | 4.13 | 38.18 |
Item List /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_listitems | 4.16 | 39.23 |
IPN Details /wp-admin/edit.php?post_type=paypal_ipn | 4.30 | 42.84 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 43 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_withinweb_wwkc_keycodes_items |
wp_withinweb_wwkc_keycodes_saleshistory |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
withinweb_wwkc_keycodes_paypal_environment |
theysaidso_admin_options |
withinweb_wwkc_keycodes_ipn_url |
Browser metrics Passed 4 tests
A check of browser resources used by Sell License Key Codes with WordPress PHP-KeyCodes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲157 | 13.49 ▼1.05 | 8.46 ▲6.78 | 42.88 ▼1.36 |
Dashboard /wp-admin | 2,243 ▲65 | 5.65 ▼0.07 | 95.91 ▼10.01 | 43.94 ▲1.25 |
Posts /wp-admin/edit.php | 2,148 ▲45 | 2.02 ▼0.01 | 34.42 ▼1.51 | 36.32 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,564 ▲38 | 23.27 ▼0.38 | 680.07 ▼2.45 | 55.12 ▼1.48 |
Media Library /wp-admin/upload.php | 1,448 ▲51 | 4.13 ▼0.04 | 99.83 ▼9.98 | 42.51 ▼5.38 |
Settings /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_settings | 1,004 | 2.02 | 27.74 | 30.94 |
KeyCodes /wp-admin/admin.php?page=withinweb-php-keycodes/admin/classes/admindisplay.php | 1,049 | 1.99 | 23.07 | 34.55 |
Sales Details /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_salesdetails | 718 | 1.12 | 6.54 | 24.77 |
Delete Item /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_deleteitem | 715 | 1.12 | 6.87 | 20.04 |
Product button code /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_buttoncode | 722 | 1.51 | 8.09 | 29.05 |
Sales /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_sales | 836 | 1.99 | 22.35 | 27.91 |
Edit Item /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_edititem | 718 | 1.51 | 6.27 | 21.10 |
Local Test /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_localtest | 708 | 1.51 | 6.87 | 19.95 |
Item List /wp-admin/admin.php?page=withinweb_wwkc_keycodes_admin_display_listitems | 836 | 1.99 | 26.75 | 27.99 |
IPN Details /wp-admin/edit.php?post_type=paypal_ipn | 1,287 | 1.96 | 33.87 | 31.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure failed, leaving 2 tables in the database
- wp_withinweb_wwkc_keycodes_items
- wp_withinweb_wwkc_keycodes_saleshistory
- The uninstall procedure has failed, leaving 8 options in the database
- widget_theysaidso_widget
- withinweb_wwkc_keycodes_paypal_environment
- theysaidso_admin_options
- withinweb_wwkc_keycodes_ipn_url
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/withinweb-php-keycodes/admin/classes/createitem.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/withinweb-php-keycodes/admin/classes/listitems.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/withinweb-php-keycodes/includes/ipnforwarder.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/withinweb-php-keycodes/admin/classes/deleteitem.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/withinweb-php-keycodes/admin/classes/about.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/withinweb-php-keycodes/keycodes/keycodesactions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/withinweb-php-keycodes/admin/classes/buttoncode.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/withinweb-php-keycodes/public/classes/publicdisplay.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/withinweb-php-keycodes/admin/classes/posttypes.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/withinweb-php-keycodes/admin/classes/premium.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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
7 plugin tags: key codes, pin codes, mobile phone pins, sell pin codes, license keys...
withinweb-php-keycodes/withinweb-wwkc-keycodes.php 85% from 13 tests
Analyzing the main PHP file in "Sell License Key Codes with WordPress PHP-KeyCodes" version 2.1.6
Please take the time to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("withinweb-php-keycodes.php" instead of "withinweb-wwkc-keycodes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,975 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 31 | 1,183 | 940 | 4,852 |
CSS | 1 | 3 | 0 | 71 |
JavaScript | 3 | 5 | 0 | 52 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 32.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 5.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 121 | 69.54% |
▷ Public methods | 158 | 90.80% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 9.20% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/withinweb_wwkc_keycodes_icon.png | 1.48KB | 0.83KB | ▼ 43.92% |