Benchmarks
Plugin footprint 48% 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.01MB] [CPU: ▼2.75ms] Passed 4 tests
A check of server-side resources used by WP Pricing Table
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.59 ▲1.28 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.39 ▲3.27 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.57 ▲0.39 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 89.92 ▼12.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.77 ▼0.04 |
Price Tables /wp-admin/admin.php?page=wp-pricing-table-menu | 3.18 | 28.75 |
Settings /wp-admin/admin.php?page=wp-pricing-table-menu-settings | 3.21 | 30.78 |
Server storage [IO: ▲0.11MB] [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: 12 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wppt_tables |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
wppt_db_version |
Browser metrics Passed 4 tests
WP Pricing Table: 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,933 ▲162 | 13.56 ▼0.81 | 4.93 ▲3.14 | 45.09 ▲2.73 |
Dashboard /wp-admin | 2,233 ▲45 | 4.84 ▼1.07 | 109.58 ▲5.52 | 45.20 ▲1.37 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.00 ▲0.00 | 34.34 ▼2.20 | 34.02 ▼2.47 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.12 ▲4.61 | 587.50 ▼24.46 | 51.53 ▼7.33 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.22 ▼0.07 | 98.33 ▲2.12 | 43.52 ▲0.70 |
Price Tables /wp-admin/admin.php?page=wp-pricing-table-menu | 814 | 2.03 | 24.41 | 38.29 |
Settings /wp-admin/admin.php?page=wp-pricing-table-menu-settings | 975 | 1.85 | 28.75 | 37.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'wppt_deactivate' not found or invalid function name
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_wppt_tables
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- wppt_db_version
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/admin.php?page=wp-pricing-table-menu
- > Notice in wp-content/plugins/wp-pricing-table/wp-pricing-table.php+182
Undefined index: action
- > GET request to /wp-admin/admin.php?page=wp-pricing-table-menu
- > Notice in wp-content/plugins/wp-pricing-table/wp-pricing-table.php+337
Undefined variable: trashlink
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-pricing-table/wp-pricing-table.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Example of a price table), #2 (Back end settings), #3 (Complete customization)
wp-pricing-table/wp-pricing-table.php 92% from 13 tests
The entry point to "WP Pricing Table" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
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
There were no executable files found in this plugin1,282 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 138 | 41 | 821 |
PHP | 1 | 109 | 13 | 460 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
4 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/hs.png | 2.62KB | 7.54KB | 0.00% |
js/hv.png | 2.80KB | 7.32KB | 0.00% |
images/pro_version.png | 29.50KB | 10.89KB | ▼ 63.10% |
images/basic_version.png | 8.13KB | 3.37KB | ▼ 58.51% |