10% svs-pricing-tables

Code Review | SVS Pricing Tables

WordPress plugin SVS Pricing Tables scored10%from 54 tests.

About plugin

  • Plugin page: svs-pricing-tables
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Aug 22, 2015
  • Latest release: Dec 23, 2015
  • Number of updates: 13
  • Update frequency: every 9.6 days
  • Top authors: svs-websoft (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /5,640 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/svs-pricing-tables/svs-pricing-tables-main.php+20
    Undefined variable: wpdb

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.31ms] Passed 4 tests

Analyzing server-side resources used by SVS Pricing Tables
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.65 ▼3.67
Dashboard /wp-admin3.31 ▲0.0146.39 ▲0.16
Posts /wp-admin/edit.php3.36 ▲0.0145.69 ▲1.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.60 ▲2.70
Media Library /wp-admin/upload.php3.23 ▲0.0135.24 ▲1.20

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 55 new files
Database: 1 new table, 6 new options
New tables
wp_svs_pricing_tables
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for SVS Pricing Tables
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲10613.22 ▼1.081.80 ▼0.0940.43 ▼0.49
Dashboard /wp-admin2,225 ▲394.86 ▼1.1598.16 ▼3.1441.79 ▼0.18
Posts /wp-admin/edit.php2,108 ▲192.04 ▼0.0035.11 ▼1.9231.96 ▼1.34
Add New Post /wp-admin/post-new.php1,546 ▲1323.23 ▼0.02642.41 ▼9.1862.13 ▲6.96
Media Library /wp-admin/upload.php1,407 ▲164.27 ▼0.0394.56 ▼9.0641.53 ▼4.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_svs_pricing_tables
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/svs-pricing-tables/app/view/_footer.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/svs-pricing-tables/app/view/_header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/svs-pricing-tables/app/view/_header.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/svs-pricing-tables/app/view/_header.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: pricing table, comparison table, pricing plugin, pricing tables, price comparison table...

svs-pricing-tables/svs-pricing-tables-main.php 92% from 13 tests

The main file in "SVS Pricing Tables" v. 1.0.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("svs-pricing-tables.php" instead of "svs-pricing-tables-main.php")

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
No dangerous file extensions were detected843 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
SVG103540
PHP73576262
CSS99238
JavaScript3003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.37
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods210.53%
▷ Public methods1368.42%
▷ Protected methods00.00%
▷ Private methods631.58%
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

PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 0.06MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/t02/images/yes.png1.32KB1.27KB▼ 3.34%
images/codecanyon.png16.79KB6.46KB▼ 61.55%
templates/t03/images/no.png1.35KB1.36KB0.00%
templates/t06/images/no.png0.86KB0.80KB▼ 6.89%
images/svs_logo.png8.35KB4.70KB▼ 43.72%