Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼7.28ms] 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 / | 3.97 ▲0.51 | 42.39 ▼0.63 |
Dashboard /wp-admin | 3.82 ▲0.52 | 48.06 ▼2.01 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 47.50 ▲1.82 |
Add New Post /wp-admin/post-new.php | 5.65 ▼0.23 | 68.50 ▼28.30 |
Media Library /wp-admin/upload.php | 3.68 ▲0.46 | 42.18 ▲8.65 |
All Pricing Table /wp-admin/edit.php?post_type=ptwposttype | 3.79 | 39.80 |
Add New /wp-admin/post-new.php?post_type=ptwposttype | 3.66 | 37.31 |
Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pricing Table
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,953 ▲196 | 14.14 ▼0.45 | 7.78 ▲5.61 | 42.33 ▼9.02 |
Dashboard /wp-admin | 2,234 ▲42 | 5.86 ▲0.92 | 104.54 ▼15.59 | 42.56 ▼3.90 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.07 ▲0.06 | 41.25 ▲5.01 | 34.77 ▲0.64 |
Add New Post /wp-admin/post-new.php | 1,568 ▲34 | 18.68 ▼4.46 | 641.36 ▼53.01 | 34.38 ▼21.26 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.24 ▲0.06 | 95.63 ▼7.58 | 42.28 ▼3.04 |
All Pricing Table /wp-admin/edit.php?post_type=ptwposttype | 1,101 | 2.36 | 37.95 | 26.69 |
Add New /wp-admin/post-new.php?post_type=ptwposttype | 2,678 | 3.58 | 94.45 | 34.41 |
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 does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=ptwposttype
- > User deprecated in wp-includes/functions.php+5828
Hook dbx_post_advanced is deprecated since version 3.7.0! Use add_meta_boxes instead.
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/pricing-table-free/pricing-table-wordpress.php
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pricing-table-free/metabox/example-functions.php:104
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/pricing-table-free/metabox/custom-meta-boxes.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-free/metabox/classes.fields.php:581
- > PHP Warning
Use of undefined constant WP_CONTENT_URL - assumed 'WP_CONTENT_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/pricing-table-free/metabox/custom-meta-boxes.php on line 46
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-free/metabox/classes.fields.php:581
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: Add a description for screenshot #6 in pricing-table-free/assets to your readme.txt
pricing-table-free/pricing-table-wordpress.php 92% from 13 tests
The primary PHP file in "Pricing Table" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("pricing-table-free.php" instead of "pricing-table-wordpress.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 plugin11,051 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 17 | 357 | 150 | 4,969 |
JavaScript | 10 | 713 | 451 | 2,756 |
PHP | 8 | 934 | 399 | 2,729 |
SVG | 1 | 0 | 0 | 565 |
PO File | 1 | 8 | 10 | 32 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 1 | 4.55% |
▷ Concrete classes | 21 | 95.45% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 2 | 2.17% |
▷ Public methods | 88 | 95.65% |
▷ Protected methods | 1 | 1.09% |
▷ Private methods | 3 | 3.26% |
Functions | 20 | |
▷ Named functions | 20 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
metabox/css/vendor/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png | 0.20KB | 0.08KB | ▼ 58.17% |
metabox/css/vendor/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.26KB | 0.15KB | ▼ 42.37% |
metabox/css/vendor/jquery-ui/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
metabox/images/cmb-icon-remove.png | 1.00KB | 0.14KB | ▼ 85.64% |
metabox/css/vendor/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.21KB | 0.08KB | ▼ 58.96% |