Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.31MB] [CPU: ▼1.47ms] Passed 4 tests
Analyzing server-side resources used by Pricing Tables Pro
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 45.34 ▼5.23 |
Dashboard /wp-admin | 3.68 ▲0.38 | 55.00 ▼1.59 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 54.74 ▲3.20 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 94.02 ▼1.61 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 39.64 ▲2.56 |
Pricing Tables /wp-admin/edit.php?post_type=mc_ptp_pricing_table | 3.59 | 44.61 |
Add New /wp-admin/post-new.php?post_type=mc_ptp_pricing_table | 3.99 | 49.17 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pricing Tables Pro
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲73 | 14.76 ▲0.21 | 2.23 ▲0.20 | 44.34 ▼2.11 |
Dashboard /wp-admin | 2,238 ▲61 | 5.68 ▲0.06 | 96.42 ▼4.03 | 43.15 ▼2.54 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.01 ▲0.06 | 39.34 ▲0.75 | 33.93 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,436 ▼93 | 18.37 ▼5.16 | 606.70 ▼50.04 | 49.79 ▼9.93 |
Media Library /wp-admin/upload.php | 1,443 ▲46 | 4.23 ▲0.03 | 97.91 ▼4.78 | 42.21 ▼1.01 |
Pricing Tables /wp-admin/edit.php?post_type=mc_ptp_pricing_table | 1,112 | 1.98 | 34.26 | 30.55 |
Add New /wp-admin/post-new.php?post_type=mc_ptp_pricing_table | 1,752 | 2.59 | 54.06 | 65.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/pricing-tables-pro/cmb2/bootstrap.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-tables-pro/pricing-tables-pro.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pricing-tables-pro/cmb2/init.php:119
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
pricing-tables-pro/pricing-tables-pro.php Passed 13 tests
"Pricing Tables Pro" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
23 characters long description:
A pricing table plugin.
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
There were no executable files found in this plugin7,622 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 1,080 | 1,025 | 4,196 |
PHP | 15 | 891 | 1,915 | 2,804 |
JavaScript | 3 | 158 | 115 | 622 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 39.92 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 188 | |
▷ Static methods | 20 | 10.64% |
▷ Public methods | 178 | 94.68% |
▷ Protected methods | 7 | 3.72% |
▷ Private methods | 3 | 1.60% |
Functions | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |