Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.13MB] [CPU: ▼44.88ms] Passed 4 tests
An overview of server-side resources used by Minimal Responsive Pricing Table
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▼0.62 | 14.89 ▼22.38 |
Dashboard /wp-admin | 2.88 ▼0.43 | 16.16 ▼30.53 |
Posts /wp-admin/edit.php | 2.88 ▼0.48 | 15.58 ▼36.46 |
Add New Post /wp-admin/post-new.php | 2.88 ▼3.01 | 17.99 ▼90.14 |
Media Library /wp-admin/upload.php | 2.88 ▼0.35 | 15.67 ▼16.25 |
Add New /wp-admin/post-new.php?post_type=mrpt_pricing_table | 2.88 | 16.66 |
All Pricing Tables /wp-admin/edit.php?post_type=mrpt_pricing_table | 2.88 | 25.59 |
Server storage [IO: ▲3.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 338 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Minimal Responsive Pricing Table: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲189 | 14.00 ▼0.64 | 4.77 ▲3.07 | 51.07 ▲8.00 |
Dashboard /wp-admin | 2,245 ▲57 | 5.87 ▲1.00 | 108.00 ▼3.00 | 40.17 ▼7.00 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.04 ▲0.04 | 38.67 ▼10.30 | 33.66 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,550 ▲31 | 23.13 ▲0.17 | 666.84 ▲70.27 | 54.89 ▼7.00 |
Media Library /wp-admin/upload.php | 1,430 ▲39 | 4.28 ▲0.04 | 94.81 ▲0.19 | 45.24 ▲3.02 |
Add New /wp-admin/post-new.php?post_type=mrpt_pricing_table | 2,546 | 3.66 | 97.51 | 90.87 |
All Pricing Tables /wp-admin/edit.php?post_type=mrpt_pricing_table | 1,097 | 1.98 | 34.47 | 29.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/minimal-responsive-pricing-table/includes/minimal_pricing_post_type.php+11
Undefined variable: post_type_prefix
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
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
These errors were triggered by the plugin
- 39 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=mrpt_pricing_table
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/minimal-responsive-pricing-table/includes/minimal_pricing_post_type.php+23
Undefined variable: post_type_prefix
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/minimal-responsive-pricing-table/admin/partials/mini-res-pt-admin-display.php
- > /wp-content/plugins/minimal-responsive-pricing-table/public/partials/mini-res-pt-public-display.php
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/minimal-responsive-pricing-table/public/layout_red.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimal-responsive-pricing-table/includes/cmb2/init.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/minimal-responsive-pricing-table/public/layout_blue.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/minimal-responsive-pricing-table/public/layout_darkblue.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/minimal-responsive-pricing-table/public/layout_green.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimal-responsive-pricing-table/includes/minimal_pricing_post_type.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/minimal-responsive-pricing-table/admin/message-updated.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/minimal-responsive-pricing-table/includes/cmb2/bootstrap.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (This is light blue layout (Front View)), #2 (This is pink/red layout (Front View)), #3 (This is dark blue layout (Front View)), #4 (This is light green layout (Front View))
minimal-responsive-pricing-table/mini-res-pt.php 85% from 13 tests
The primary PHP file in "Minimal Responsive Pricing Table" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("minimal-responsive-pricing-table.php" instead of "mini-res-pt.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected45,998 lines of code in 172 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 119 | 12,614 | 16,209 | 28,917 |
CSS | 9 | 1,028 | 1,046 | 10,780 |
PHP | 33 | 1,105 | 2,574 | 3,467 |
JavaScript | 8 | 743 | 368 | 2,231 |
Markdown | 2 | 111 | 0 | 315 |
SVG | 1 | 0 | 0 | 288 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 27.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 22 | 10.19% |
▷ Public methods | 201 | 93.06% |
▷ Protected methods | 7 | 3.24% |
▷ Private methods | 8 | 3.70% |
Functions | 26 | |
▷ Named functions | 26 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
29 PNG files occupy 0.38MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 30.01KB | 14.17KB | ▼ 52.80% |
includes/cmb2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
includes/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
includes/layouts/blue.png | 23.01KB | 6.01KB | ▼ 73.88% |