Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼138.87ms] Passed 4 tests
A check of server-side resources used by Pricing Table
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.04 | 33.25 ▼0.69 |
Dashboard /wp-admin | 3.10 ▲0.04 | 46.36 ▲4.65 |
Posts /wp-admin/edit.php | 3.18 ▲0.08 | 49.30 ▲7.32 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.03 | 91.79 ▼555.17 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 34.88 ▼4.26 |
Add New /wp-admin/post-new.php?post_type=pricing-table | 3.25 | 49.67 |
All Pricing Tables /wp-admin/edit.php?post_type=pricing-table | 3.08 | 30.44 |
Help /wp-admin/edit.php?post_type=pricing-table&page=help | 3.04 | 26.75 |
Shortcodes /wp-admin/edit.php?post_type=pricing-table&page=short-codes | 3.06 | 30.65 |
Server storage [IO: ▲0.91MB] [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: 87 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Pricing Table
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,757 ▲161 | 15.87 ▲0.39 | 9.28 ▼3.12 | 45.60 ▲0.97 |
Dashboard /wp-admin | 3,015 ▲81 | 5.99 ▲0.05 | 160.11 ▲21.61 | 118.22 ▲14.29 |
Posts /wp-admin/edit.php | 2,787 ▲48 | 2.70 ▲0.02 | 64.41 ▲3.38 | 91.89 ▲10.88 |
Add New Post /wp-admin/post-new.php | 1,715 ▲100 | 18.74 ▼3.00 | 384.86 ▲117.84 | 113.99 ▲10.52 |
Media Library /wp-admin/upload.php | 1,855 ▲45 | 5.05 ▲0.01 | 156.16 ▲1.06 | 114.44 ▼6.65 |
Add New /wp-admin/post-new.php?post_type=pricing-table | 2,440 | 4.22 | 104.61 | 131.79 |
All Pricing Tables /wp-admin/edit.php?post_type=pricing-table | 1,466 | 2.63 | 62.81 | 73.49 |
Help /wp-admin/edit.php?post_type=pricing-table&page=help | 1,174 | 2.09 | 56.42 | 90.44 |
Shortcodes /wp-admin/edit.php?post_type=pricing-table&page=short-codes | 1,237 | 2.34 | 57.25 | 90.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=pricing-table
- > Warning in wp-content/plugins/pricing-table/tpls/metabox-feature-options.php+119
array_keys() expects parameter 1 to be array, string given
- > GET request to /wp-admin/post-new.php?post_type=pricing-table
- > Notice in wp-content/plugins/pricing-table/tpls/metabox-feature-options.php+120
Undefined offset: 0
- > GET request to /wp-admin/post-new.php?post_type=pricing-table
- > Notice in wp-content/plugins/pricing-table/tpls/metabox-feature-options.php+120
String offset cast occurred
- > GET request to /wp-admin/post-new.php?post_type=pricing-table
- > Notice in wp-content/plugins/pricing-table/tpls/metabox-feature-options.php+120
Uninitialized string offset: 0
- > GET request to /wp-admin/post-new.php?post_type=pricing-table
- > Warning in wp-content/plugins/pricing-table/tpls/metabox-feature-options.php+120
count(): Parameter must be an array or an object that implements Countable
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
- 11× 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 get_option() in wp-content/plugins/pricing-table/tpls/short-codes.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table/modules/metabox.php:121
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/pricing-table/tpls/help.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table/modules/metabox.php:121
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/pricing-table/table-templates/rock/price_table.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/pricing-table/tpls/metabox-feature-options.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/pricing-table/table-templates/smooth/price_table.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pricing-table/modules/wppt-free-mce-button.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/pricing-table/table-templates/override/price_table.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/pricing-table/table-templates/bold/price_table.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=pricing-table
- > Network (severe)
wp-content/plugins/pricing-table/css/site/tipTip.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=pricing-table&page=short-codes
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=pricing-table&page=short-codes 247:22 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
pricing-table/pricing-table.php Passed 13 tests
The main PHP file in "Pricing Table" ver. 1.5.2 adds more information about the plugin and also serves as the entry point for this plugin
54 characters long description:
WordPress Plugin for creating colorful pricing tables.
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
Success! There were no dangerous files found in this plugin12,872 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 13 | 614 | 127 | 10,507 |
PHP | 12 | 261 | 26 | 1,611 |
JavaScript | 7 | 132 | 327 | 657 |
PO File | 1 | 40 | 41 | 97 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
44 PNG files occupy 0.18MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
table-templates/override/img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |
table-templates/smooth/images/bestvalue4.png | 5.13KB | 2.05KB | ▼ 60.07% |
css/admin/table-images/right.png | 0.21KB | 0.17KB | ▼ 18.64% |
images/minimax.v3.png | 63.56KB | 28.36KB | ▼ 55.38% |
images/edit-desc.png | 0.73KB | 0.84KB | 0.00% |