84% pricetable-wp

Code Review | Price Table

WordPress plugin Price Table scored84%from 54 tests.

About plugin

  • Plugin page: pricetable-wp
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 20, 2019
  • Latest release: Nov 22, 2023
  • Number of updates: 17
  • Update frequency: every 86.1 days
  • Top authors: wpdiscover (47.06%)ratinatemplates (47.06%)nickmart111 (17.65%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /4,659 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.70MB] [CPU: ▼22.95ms] Passed 4 tests

This is a short check of server-side resources used by Price Table
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1139.17 ▲0.85
Dashboard /wp-admin3.17 ▼0.1427.55 ▼20.15
Posts /wp-admin/edit.php3.31 ▼0.0533.78 ▼19.77
Add New Post /wp-admin/post-new.php3.27 ▼2.6336.00 ▼45.58
Media Library /wp-admin/upload.php3.26 ▲0.0227.23 ▼6.31

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Price Table
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,442 ▼1,32010.26 ▼4.111.80 ▲0.0734.87 ▼3.34
Dashboard /wp-admin2,210 ▲365.51 ▼0.1493.39 ▼8.0984.35 ▲39.56
Posts /wp-admin/edit.php2,127 ▲271.96 ▼0.0534.51 ▼4.2630.77 ▼6.17
Add New Post /wp-admin/post-new.php1,568 ▲4222.98 ▲0.16726.11 ▲123.9438.07 ▼16.74
Media Library /wp-admin/upload.php1,430 ▲304.20 ▲0.0296.43 ▼1.4675.75 ▲34.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • 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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pricetable-wp/pricetable-wp.php:24

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: pricing, our price table, price, price table, table price

pricetable-wp/pricetable-wp.php Passed 13 tests

The primary PHP file in "Price Table" version 2.2 is used by WordPress to initiate all plugin functionality
131 characters long description:
Pricetable plugin manage price tables on any wordpress page and posts. Easily add unlimited feature box with drag and drop builder.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin8,597 lines of code in 50 files:
LanguageFilesBlank linesComment linesLines of code
CSS101651643,849
JavaScript8110841,313
Sass1319221,158
LESS1319311,149
PHP5145122624
SVG100504

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
10 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
images/icon.png0.60KB0.42KB▼ 30.03%
css/images/ui-icons_222222_256x240.png4.28KB4.13KB▼ 3.54%
images/iconn.png1.43KB0.56KB▼ 61.09%
screenshot-1.png27.39KB12.34KB▼ 54.96%