Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼2.81ms] Passed 4 tests
This is a short check of server-side resources used by Pricing Tables for WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.27 ▲3.48 |
Dashboard /wp-admin | 3.39 ▲0.09 | 44.81 ▼2.60 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 44.37 ▼1.92 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 90.91 ▼3.05 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.45 ▼3.65 |
Add New /wp-admin/admin.php?page=optimal-pricing-tbl-new | 3.53 | 32.13 |
Pricing Table /wp-admin/admin.php?page=optimal-pricing-tbl | 3.33 | 34.45 |
Server storage [IO: ▲1.71MB] [DB: ▲0.03MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 80 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_optimal_pricing_tbl |
wp_optimal_pricing_tbl_templates |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Pricing Tables for WP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.17 ▼0.18 | 1.76 ▲0.28 | 46.32 ▲3.31 |
Dashboard /wp-admin | 2,215 ▲35 | 5.54 ▼0.12 | 80.92 ▼4.71 | 36.90 ▼9.67 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.03 ▲0.05 | 36.41 ▲1.05 | 33.92 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 18.15 ▼4.85 | 593.98 ▼87.68 | 72.20 ▲17.46 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.20 ▼0.05 | 98.91 ▼0.66 | 43.30 ▼3.15 |
Add New /wp-admin/admin.php?page=optimal-pricing-tbl-new | 2,663 | 3.70 | 80.62 | 83.77 |
Pricing Table /wp-admin/admin.php?page=optimal-pricing-tbl | 928 | 2.01 | 24.73 | 25.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.03MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_optimal_pricing_tbl
- wp_optimal_pricing_tbl_templates
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/awesome-pricing-tables-lite-by-optimalplugins/OPT/Admin/Pages/GlobalCSS.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function prepare() on null in wp-content/plugins/awesome-pricing-tables-lite-by-optimalplugins/OPT/Admin/Pages/template.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #2 (Additional settings of [Pricing Tables for WP Pro](http://demo.optimalplugins.com/pricing-tables-for-wp-pro/))
awesome-pricing-tables-lite-by-optimalplugins/pricing-tables-for-wp.php 85% from 13 tests
The main file in "Pricing Tables for WP" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("awesome-pricing-tables-lite-by-optimalplugins.php" instead of "pricing-tables-for-wp.php")
- Requires at least: The required version number must match the one declared in readme.txt ("3.6" instead of "3.8")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected21,770 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 47 | 4,568 | 801 | 18,967 |
PHP | 10 | 321 | 142 | 1,662 |
CSS | 4 | 47 | 8 | 596 |
SVG | 1 | 0 | 0 | 520 |
YAML | 1 | 4 | 0 | 16 |
HTML | 1 | 3 | 0 | 9 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 158)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 31.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 182.00 |
Average method complexity | 4.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 158.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 62 | |
▷ Static methods | 9 | 14.52% |
▷ Public methods | 42 | 67.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 32.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.20MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 59.54KB | 24.86KB | ▼ 58.25% |
js/jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |
assets/icon-256x256.png | 7.18KB | 3.03KB | ▼ 57.75% |
assets/banner-772x250.png | 135.45KB | 41.73KB | ▼ 69.19% |
js/jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |