89% pricing-tables-block

Code Review | Pricing Tables Block

WordPress plugin Pricing Tables Block scored 89% from 54 tests.

About plugin

  • Plugin page: pricing-tables-block
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.1.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2019
  • Latest release: Jul 9, 2019
  • Number of updates: 15
  • Update frequency: every 5.5 days
  • Top authors: B-07 (93.33%)raihancse (13.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,524 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.26MB] [CPU: ▼10.96ms] Passed 4 tests

This is a short check of server-side resources used by Pricing Tables Block
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.43 ▼5.20
Dashboard /wp-admin3.32 ▲0.0248.37 ▼1.99
Posts /wp-admin/edit.php3.37 ▲0.0145.25 ▲0.88
Add New Post /wp-admin/post-new.php4.81 ▼1.0751.22 ▼37.52
Media Library /wp-admin/upload.php3.24 ▲0.0138.17 ▲2.69

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Pricing Tables Block: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲18913.68 ▲0.468.07 ▲3.4946.33 ▼1.72
Dashboard /wp-admin2,203 ▲155.82 ▼0.06104.87 ▲0.7442.10 ▼0.08
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0138.73 ▲0.8936.51 ▲6.05
Add New Post /wp-admin/post-new.php6,597 ▲5,06429.87 ▲6.50829.45 ▲139.9140.83 ▼10.97
Media Library /wp-admin/upload.php1,385 ▼34.18 ▲0.0094.26 ▼10.1944.61 ▼0.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: You can take inspiration from this readme.txt

pricing-tables-block/plugin.php 92% from 13 tests

The primary PHP file in "Pricing Tables Block" version 2.0.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pricing-tables-block.php" instead of "plugin.php")

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
There were no executable files found in this plugin3,803 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript8360931,510
CSS7199641,373
Sass31301869
PHP2215351

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.20
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin