90% price-table-block

Code Review | Price Table Block

WordPress plugin Price Table Block scored 90% from 54 tests.

About plugin

  • Plugin page: price-table-block
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Jul 24, 2020
  • Latest release: Mar 30, 2023
  • Number of updates: 17
  • Update frequency: every 57.6 days
  • Top authors: wpdevteam (76.47%)alam789 (17.65%)Asif2BD (17.65%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 14,662 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼2.39ms] Passed 4 tests

Server-side resources used by Price Table Block
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1942.26 ▲3.83
Dashboard /wp-admin3.45 ▲0.1546.11 ▼2.06
Posts /wp-admin/edit.php3.57 ▲0.2148.35 ▲0.46
Add New Post /wp-admin/post-new.php6.06 ▲0.1786.42 ▼11.79
Media Library /wp-admin/upload.php3.38 ▲0.1540.23 ▲9.97

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Price Table Block
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.72 ▼1.034.54 ▲2.8341.71 ▼7.54
Dashboard /wp-admin2,200 ▲155.83 ▼0.04101.32 ▼9.1239.50 ▼2.76
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0138.24 ▲2.0435.94 ▲3.53
Add New Post /wp-admin/post-new.php1,656 ▲13622.57 ▼0.36663.92 ▼2.8036.16 ▼16.05
Media Library /wp-admin/upload.php1,382 ▼64.24 ▲0.0396.96 ▲0.0242.81 ▼1.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended 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-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
10 plugin tags: price, gutenberg, gutenberg blocks, blocks, pricing...

price-table-block/price-table-block.php Passed 13 tests

"Price Table Block" version 1.2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
61 characters long description:
Instantly create beautiful pricing menu for eCommerce website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected20,121 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
SVG50012,231
CSS61,502467,099
PHP8107164705
JavaScript311464
JSON10022

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity32.40
▷ Minimum class complexity1.00
▷ Maximum class complexity87.00
Average method complexity5.43
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods33
▷ Static methods1236.36%
▷ Public methods2987.88%
▷ Protected methods00.00%
▷ Private methods412.12%
Functions5
▷ Named functions120.00%
▷ Anonymous functions480.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin