10% tabular-price-pane

Code Review | Tabular Price Pane

WordPress plugin Tabular Price Pane scored10%from 54 tests.

About plugin

  • Plugin page: tabular-price-pane
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Apr 20, 2016
  • Latest release: Sep 22, 2016
  • Number of updates: 11
  • Update frequency: every 21.8 days
  • Top authors: ikhodal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /955 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in tabularPricePaneWidget is deprecated since version 4.3.0! Use __construct() instead.

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.76ms] Passed 4 tests

This is a short check of server-side resources used by Tabular Price Pane
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.09 ▼31.84
Dashboard /wp-admin2.05 ▼1.266.88 ▼41.49
Posts /wp-admin/edit.php2.05 ▼1.316.84 ▼41.84
Add New Post /wp-admin/post-new.php2.05 ▼3.846.96 ▼95.88
Media Library /wp-admin/upload.php2.05 ▼1.185.78 ▼28.45

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

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

Browser metrics Passed 4 tests

Tabular Price Pane: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7514.46 ▲0.061.71 ▼0.2639.99 ▼5.82
Dashboard /wp-admin2,210 ▲195.79 ▼0.09105.10 ▲3.4039.31 ▼5.61
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0439.88 ▼0.4436.91 ▼2.31
Add New Post /wp-admin/post-new.php1,539 ▲2523.13 ▲5.51630.37 ▲11.4751.58 ▲1.44
Media Library /wp-admin/upload.php1,389 ▲44.22 ▼0.0395.51 ▼10.8240.78 ▼4.57

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in tabularPricePaneWidget is deprecated since version 4.3.0! Use __construct() instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_tabularpricepaneadmin
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% 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:
  • Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
The official readme.txt is a good inspiration

tabular-price-pane/plugin.php 92% from 13 tests

The main PHP script in "Tabular Price Pane" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tabular-price-pane.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin1,294 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP11183375882
JavaScript2173162
PO File159104132
CSS2912118

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.00
▷ Minimum class complexity4.00
▷ Maximum class complexity18.00
Average method complexity2.36
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants20
▷ Global constants20100.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
8 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ac_close.png0.27KB0.17KB▼ 34.80%
assets/images/right-icon.png0.36KB0.44KB0.00%
assets/images/ac_bottom.png0.28KB0.27KB▼ 5.54%
assets/images/view-more.png0.36KB0.33KB▼ 7.14%
assets/images/cart.png0.48KB0.47KB▼ 1.84%