83% pricer-ninja-pricing-tables

Code Review | Pricer Ninja: Create and add responsive Pricing Tables to your website on-the-fly

WordPress plugin Pricer Ninja: Create and add responsive Pricing Tables to your website on-the-fly scored 83% from 54 tests.

About plugin

  • Plugin page: pricer-ninja-pric...
  • Plugin version: 2.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Oct 2, 2013
  • Latest release: May 12, 2020
  • Number of updates: 9
  • Update frequency: every 268.3 days
  • Top authors: CommonNinja (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active / 7,777 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.55ms] Passed 4 tests

Server-side resources used by Pricer Ninja: Create and add responsive Pricing Tables to your website on-the-fly
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.23 ▲3.67
Dashboard /wp-admin3.31 ▲0.0048.12 ▼1.45
Posts /wp-admin/edit.php3.36 ▲0.0043.14 ▼3.31
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.12 ▼17.25
Media Library /wp-admin/upload.php3.23 ▲0.0034.95 ▼0.18

Server storage [IO: ▲0.01MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Pricer Ninja: Create and add responsive Pricing Tables to your website on-the-fly
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼1.494.48 ▲2.8138.07 ▼6.24
Dashboard /wp-admin2,203 ▲185.83 ▲0.9196.15 ▼8.2038.39 ▼2.86
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0133.92 ▼18.9232.94 ▼10.92
Add New Post /wp-admin/post-new.php1,539 ▲2518.23 ▲0.62643.63 ▲7.0350.92 ▼1.93
Media Library /wp-admin/upload.php1,388 ▼34.17 ▲0.0192.26 ▼14.7041.88 ▼5.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 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)
Everything seems fine, however this is by no means 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 fix 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_shortcode() in wp-content/plugins/pricer-ninja-pricing-tables/pricerninja.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: A description for screenshot #5 is required in pricer-ninja-pricing-tables/assets to your readme.txt
Please take inspiration from this readme.txt

pricer-ninja-pricing-tables/pricerninja.php 85% from 13 tests

"Pricer Ninja: Create and add responsive Pricing Tables to your website on-the-fly" version 2.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pricer-ninja-pricing-tables.php" instead of "pricerninja.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin47 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript10729
PHP161518

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/pricerninja.png3.14KB0.42KB▼ 86.63%