Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.98ms] Passed 4 tests
Server-side resources used by Pricing Table Extended
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 35.62 ▼1.18 |
Dashboard /wp-admin | 3.43 ▲0.08 | 55.71 ▲1.40 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 44.17 ▼5.22 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 85.00 ▼22.91 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.00 ▲5.12 |
Pricing Tables /wp-admin/edit.php?post_type=pricing-tables | 3.39 | 36.68 |
Documentation /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation | 3.29 | 31.11 |
Add New Pricing Table /wp-admin/post-new.php?post_type=pricing-tables | 3.41 | 42.49 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Pricing Table Extended: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 14.36 ▲0.01 | 1.67 ▼0.40 | 40.13 ▼1.96 |
Dashboard /wp-admin | 2,224 ▲43 | 5.69 ▼0.02 | 82.31 ▼13.95 | 76.25 ▲34.35 |
Posts /wp-admin/edit.php | 2,151 ▲51 | 1.99 ▲0.01 | 34.22 ▼8.10 | 33.48 ▼2.99 |
Add New Post /wp-admin/post-new.php | 6,419 ▲4,893 | 28.25 ▲5.32 | 979.92 ▲361.69 | 35.28 ▼17.25 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.20 ▲0.02 | 92.42 ▼4.10 | 71.31 ▲27.27 |
Pricing Tables /wp-admin/edit.php?post_type=pricing-tables | 1,119 | 1.90 | 29.06 | 31.26 |
Documentation /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation | 1,155 | 1.93 | 34.04 | 34.73 |
Add New Pricing Table /wp-admin/post-new.php?post_type=pricing-tables | 1,663 | 2.81 | 60.07 | 39.21 |
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
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation
- > Warning in wp-content/plugins/pricing-table-extended/inc/pages/documentation.php+36
Use of undefined constant PHC_CAMERA_IMAGES_BANNER - assumed 'PHC_CAMERA_IMAGES_BANNER' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=pricing-tables
- > Notice in wp-content/plugins/pricing-table-extended/inc/meta_boxes.php+294
Undefined variable: theme
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-extended/inc/pages/documentation.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/pricing-table-extended/phc-pricing-table.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-extended/inc/meta_boxes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-extended/inc/post_type.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-extended/inc/admin_scripts.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pricing-table-extended/inc/shortcode.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pricing-table-extended/inc/manage_columns.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-table-extended/inc/backend_ajax.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/pricing-table-extended/inc/theme.php:7
- > 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)
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?post_type=pricing-tables&page=pricing_tables_documentation
- > Network (severe)
wp-admin/PHC_CAMERA_IMAGES_BANNERbanner_or.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=pricing-tables
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-accordion&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/pricing-table-extended/js/admin.js?ver=6.3.1:94:21)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-accordion&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-accordion&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=pricing-tables
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-mouse,jquery-ui-sortable,jquery-ui-accordion&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: pricing table theme, price table, pricing table, pricing table with more themes, pricing tables
pricing-table-extended/phc-pricing-table.php 92% from 13 tests
The main file in "Pricing Table Extended" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("pricing-table-extended.php" instead of "phc-pricing-table.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin2,073 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 48 | 29 | 845 |
JavaScript | 5 | 100 | 113 | 557 |
CSS | 8 | 0 | 3 | 474 |
PO File | 1 | 52 | 3 | 178 |
Markdown | 1 | 6 | 0 | 19 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
24 PNG files occupy 0.21MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/documentation/how-to-use/step7.png | 7.50KB | 4.51KB | ▼ 39.88% |
img/branches.png | 3.99KB | 1.40KB | ▼ 64.94% |
img/documentation/how-to-use/step6.png | 2.08KB | 1.38KB | ▼ 33.93% |
img/documentation/how-to-use/step1.png | 2.62KB | 1.82KB | ▼ 30.57% |
img/documentation/how-to-use/step8.png | 5.67KB | 3.45KB | ▼ 39.17% |