84% pricingtable

Code Review | Pricing Table by PickPlugins

WordPress plugin Pricing Table by PickPlugins scored84%from 54 tests.

About plugin

  • Plugin page: pricingtable
  • Plugin version: 1.12.9
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 26, 2014
  • Latest release: Apr 15, 2023
  • Number of updates: 95
  • Update frequency: every 33.6 days
  • Top authors: pickplugins (42.11%)wpkids (40%)paratheme (20%)

Code review

54 tests

User reviews

20 reviews

Install metrics

2,000+ active /95,763 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.53MB] [CPU: ▼0.10ms] Passed 4 tests

A check of server-side resources used by Pricing Table by PickPlugins
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.98 ▲0.5236.69 ▼4.12
Dashboard /wp-admin3.82 ▲0.5246.04 ▼1.35
Posts /wp-admin/edit.php3.94 ▲0.5852.31 ▲5.77
Add New Post /wp-admin/post-new.php6.43 ▲0.5494.99 ▲0.05
Media Library /wp-admin/upload.php3.75 ▲0.5238.24 ▲5.02
Add Pricing Table /wp-admin/post-new.php?post_type=pricingtable3.8547.34
All Pricing Tables /wp-admin/edit.php?post_type=pricingtable3.7937.48

Server storage [IO: ▲7.51MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 152 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Pricing Table by PickPlugins
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲8413.26 ▼1.155.26 ▲3.5741.42 ▼2.53
Dashboard /wp-admin2,233 ▲445.83 ▼0.1197.71 ▼10.8939.49 ▼4.66
Posts /wp-admin/edit.php2,119 ▲302.00 ▼0.0540.76 ▲5.3535.41 ▲2.26
Add New Post /wp-admin/post-new.php1,543 ▲2423.18 ▼0.23640.04 ▼17.8367.38 ▲0.62
Media Library /wp-admin/upload.php1,418 ▲274.30 ▲0.0997.47 ▲0.4946.01 ▲1.26
Add Pricing Table /wp-admin/post-new.php?post_type=pricingtable5,2194.89260.85156.22
All Pricing Tables /wp-admin/edit.php?post_type=pricingtable1,0961.9730.9626.97

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 were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pricingtable/includes/functions.php:11

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 97% 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
Please fix the following attributes:
  • Screenshots: Screenshot #11 (screenshot-11) image not found
The official readme.txt is a good inspiration

pricingtable/pricingtable.php Passed 13 tests

This is the main PHP file of "Pricing Table by PickPlugins" version 1.12.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
Long waited pricing table plugin for WordPress published to display pricing grid on your WordPress site.

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 plugin20,720 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
SVG401211,553
CSS91,806614,211
PHP211,6681162,883
JavaScript36029302,073

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity95.57
▷ Minimum class complexity1.00
▷ Maximum class complexity641.00
Average method complexity14.79
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods48
▷ Static methods00.00%
▷ Public methods48100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
97 PNG files occupy 3.46MB with 2.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/front/css/icon/cross_round.png3.41KB0.84KB▼ 75.33%
templates/themes/shadow-bottomleft/images/screenshot.png105.75KB72.83KB▼ 31.13%
assets/front/css/icon/cloud_download.png3.29KB0.76KB▼ 76.82%
assets/front/css/icon/amazon.png3.90KB1.33KB▼ 65.92%
assets/front/css/ribbons/dis-40.png2.23KB1.09KB▼ 51.05%