83% wp-e-commerce-table-price-shortcode

Code Review | Name: WP e-Commerce Table Price Shortcode

WordPress plugin Name: WP e-Commerce Table Price Shortcodescored83%from 54 tests.

About plugin

  • Plugin page: wp-e-commerce-tab...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: May 5, 2013
  • Latest release: May 11, 2013
  • Number of updates: 9
  • Update frequency: every 0.7 days
  • Top authors: ChrisHurst (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,511 total downloads

Benchmarks

Plugin footprint 83% 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.00MB] [CPU: ▲0.33ms] Passed 4 tests

Server-side resources used by Name: WP e-Commerce Table Price Shortcode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.02 ▼3.23
Dashboard /wp-admin3.31 ▲0.0153.12 ▲0.60
Posts /wp-admin/edit.php3.36 ▲0.0048.58 ▲1.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.07 ▲3.65
Media Library /wp-admin/upload.php3.23 ▲0.0037.82 ▲2.27

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

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

Browser metrics Passed 4 tests

Name: WP e-Commerce Table Price Shortcode: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.27 ▼0.711.59 ▼0.3238.57 ▼9.96
Dashboard /wp-admin2,206 ▲244.86 ▼0.99111.47 ▲4.4543.44 ▼0.29
Posts /wp-admin/edit.php2,089 ▲32.04 ▲0.0439.46 ▲4.6935.77 ▲1.61
Add New Post /wp-admin/post-new.php1,548 ▲2418.21 ▼5.16599.51 ▼87.7970.05 ▲12.08
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0099.08 ▼2.9944.22 ▼1.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-e-commerce-table-price-shortcode/wp-e-commerce-table-price-shortcode.php:25

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (example output of the plugin shortcode.), #2 (example use of the plugin shortcode.)
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === Name: WP e-Commerce Table Price Shortcode=== )
You can take inspiration from this readme.txt

wp-e-commerce-table-price-shortcode/wp-e-commerce-table-price-shortcode.php Passed 13 tests

Analyzing the main PHP file in "Name: WP e-Commerce Table Price Shortcode" version 1.0.2
77 characters long description:
Displays Table Prices for a WP E-Commerce Store Item using Table Rate Pricing

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
Success! There were no dangerous files found in this plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1371635

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin