72% abc-pricing-table

Code Review | Pricing Table - Price Table, Price list, Easy Pricing Table

WordPress plugin Pricing Table - Price Table, Price list, Easy Pricing Table scored72%from 54 tests.

About plugin

  • Plugin page: abc-pricing-table
  • Plugin version: 1.3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2017
  • Latest release: Nov 23, 2023
  • Number of updates: 129
  • Update frequency: every 17.4 days
  • Top authors: awordpresslife (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

5,000+ active /152,273 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.53MB] [CPU: ▼0.09ms] 75% from 4 tests

A check of server-side resources used by Pricing Table - Price Table, Price list, Easy Pricing Table
It is recommended to improve the following
  • CPU: You should keep total CPU usage under 500.00ms (currently 623.21ms on /wp-admin/edit.php?post_type=abc-pricing&page=pricing-featured-plugins-page)
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5541.16 ▲4.59
Dashboard /wp-admin3.87 ▲0.5748.13 ▼5.90
Posts /wp-admin/edit.php3.92 ▲0.5749.36 ▼1.47
Add New Post /wp-admin/post-new.php6.39 ▲0.51102.23 ▲12.64
Media Library /wp-admin/upload.php3.73 ▲0.5138.77 ▲2.44
All Pricing Table /wp-admin/edit.php?post_type=abc-pricing3.7437.22
Our Plugins /wp-admin/edit.php?post_type=abc-pricing&page=pricing-featured-plugins-page3.93623.21
Add Pricing Table /wp-admin/post-new.php?post_type=abc-pricing4.1151.40
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins3.8038.82

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 81 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pricing Table - Price Table, Price list, Easy Pricing Table
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,966 ▲20413.39 ▼0.848.23 ▲6.4737.55 ▼1.15
Dashboard /wp-admin2,267 ▲905.63 ▼0.0091.53 ▼6.8650.59 ▲9.34
Posts /wp-admin/edit.php2,178 ▲782.02 ▲0.0241.40 ▲0.0541.60 ▲6.45
Add New Post /wp-admin/post-new.php1,586 ▲5623.51 ▲0.34593.97 ▼71.9248.33 ▼15.27
Media Library /wp-admin/upload.php1,474 ▲774.24 ▲0.10101.73 ▼6.8447.50 ▲2.64
All Pricing Table /wp-admin/edit.php?post_type=abc-pricing1,1591.9937.0838.31
Our Plugins /wp-admin/edit.php?post_type=abc-pricing&page=pricing-featured-plugins-page3,3381.8833.58213.44
Add Pricing Table /wp-admin/post-new.php?post_type=abc-pricing4,3514.81158.58210.39
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins1,0762.0328.4130.28

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
    • > GET request to /wp-admin/edit.php?post_type=abc-pricing
    • > Notice in wp-content/plugins/abc-pricing-table/abc-pricing-table.php+82
    Undefined variable: columns
    • > GET request to /wp-admin/edit.php?post_type=abc-pricing
    • > Notice in wp-content/plugins/abc-pricing-table/abc-pricing-table.php+82
    Trying to access array offset on value of type null
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=tgmpa-install-plugins
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

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
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/abc-pricing-table/assets/css/template2.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/abc-pricing-table/featured-plugins/featured-plugins.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/abc-pricing-table/assets/css/template1.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/abc-pricing-table/class-tgm-plugin-activation.php:2129
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/abc-pricing-table/assets/css/template3.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/abc-pricing-table/assets/css/template4.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/edit.php?post_type=abc-pricing&page=pricing-featured-plugins-page
    • > Network (severe)
    wp-content/plugins/abc-pricing-table/css/bootstrap.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=abc-pricing&page=pricing-featured-plugins-page
    • > Network (severe)
    wp-content/plugins/abc-pricing-table/js/bootstrap.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=abc-pricing&page=pricing-featured-plugins-page
    • > Network (severe)
    wp-content/plugins/abc-pricing-table/js/featured-plugins/acl-media-upload-script.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?post_type=abc-pricing&page=pricing-featured-plugins-page
    • > Network (severe)
    wp-content/plugins/abc-pricing-table/js/featured-plugins/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: price table, price, table, pricing table, pricing

abc-pricing-table/abc-pricing-table.php 92% from 13 tests

The principal PHP file in "Pricing Table - Price Table, Price list, Easy Pricing Table" v. 1.3.8 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 144 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin49,823 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
CSS126,67014031,134
SVG50010,489
PHP96441,6724,166
JavaScript860482,713
PO File76046631,321

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 code0.34
Average class complexity43.38
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods115
▷ Static methods54.35%
▷ Public methods9078.26%
▷ Protected methods2521.74%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.24MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
include/img/set5.png38.00KB35.30KB▼ 7.11%
include/img/set2.png35.65KB33.00KB▼ 7.43%
include/img/set4.png32.65KB29.96KB▼ 8.24%
include/img/2017-12-08_20-43-13.png7.88KB3.43KB▼ 56.42%
include/img/3.png11.90KB9.05KB▼ 23.96%