73% pricing-table-by-supsystic

Code Review | Pricing Table by Supsystic

WordPress plugin Pricing Table by Supsystic scored73%from 54 tests.

About plugin

  • Plugin page: pricing-table-by-...
  • Plugin version: 1.9.11
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Sep 5, 2023
  • Number of updates: 166
  • Update frequency: every 17.7 days
  • Top authors: supsystic.com (100%)

Code review

54 tests

User reviews

286 reviews

Install metrics

20,000+ active /1,000,512 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.70MB] [CPU: ▲12.32ms] Passed 4 tests

An overview of server-side resources used by Pricing Table by Supsystic
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.50 ▲2.0460.23 ▲20.41
Dashboard /wp-admin5.03 ▲1.7362.69 ▲7.75
Posts /wp-admin/edit.php5.08 ▲1.7365.96 ▲17.75
Add New Post /wp-admin/post-new.php7.55 ▲1.67112.88 ▲3.68
Media Library /wp-admin/upload.php4.89 ▲1.6656.36 ▲20.08
Show All Tables /wp-admin/admin.php?page=tables-supsystic&tab=tables5.2955.68
Pricing Table by Supsystic /wp-admin/admin.php?page=tables-supsystic5.2851.70
Settings /wp-admin/admin.php?page=tables-supsystic&tab=settings5.0454.54
Tables Import / Export /wp-admin/admin.php?page=tables-supsystic&tab=tables_import_export5.2852.65
Overview /wp-admin/admin.php?page=tables-supsystic&tab=overview5.0552.07
Add New Table /wp-admin/admin.php?page=tables-supsystic&tab=tables_add_new5.4670.15

Server storage [IO: ▲11.36MB] [DB: ▲0.18MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 706 new files
Database: 4 new tables, 10 new options
New tables
wp_pts_usage_stat
wp_pts_modules_type
wp_pts_modules
wp_pts_tables
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
pts_opts_data
db_upgraded
pts_plugin_activation_errors
widget_recent-comments
wp_pts_db_installed
wp_pts_db_version
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Pricing Table by Supsystic
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7814.49 ▲0.061.93 ▲0.0747.21 ▲3.34
Dashboard /wp-admin2,242 ▲685.64 ▲0.0593.63 ▲4.3642.34 ▲4.45
Posts /wp-admin/edit.php2,147 ▲471.98 ▲0.0341.16 ▲1.4035.64 ▲0.29
Add New Post /wp-admin/post-new.php1,574 ▲4818.03 ▼5.09682.25 ▼6.7974.33 ▲15.01
Media Library /wp-admin/upload.php1,447 ▲474.11 ▼0.07110.94 ▼8.2649.63 ▲2.03
Show All Tables /wp-admin/admin.php?page=tables-supsystic&tab=tables1,7655.1489.71140.22
Pricing Table by Supsystic /wp-admin/admin.php?page=tables-supsystic1,7475.2083.45104.31
Settings /wp-admin/admin.php?page=tables-supsystic&tab=settings1,5084.5480.2889.16
Tables Import / Export /wp-admin/admin.php?page=tables-supsystic&tab=tables_import_export1,8145.1277.9298.76
Overview /wp-admin/admin.php?page=tables-supsystic&tab=overview2,77317.58581.9492.64
Add New Table /wp-admin/admin.php?page=tables-supsystic&tab=tables_add_new2,2923.8563.21166.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie tables were found after uninstall: 1 table
    • wp_pts_tables
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_theysaidso_widget
    • pts_opts_data
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • pts_plugin_activation_errors
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 209× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/pricing-table-by-supsystic/classes/Twig/Node/Expression/Binary/Equal.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pricing-table-by-supsystic/modules/options/views/tpl/optionsSettingsTabContent.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Error' not found in wp-content/plugins/pricing-table-by-supsystic/classes/Twig/Sandbox/SecurityError.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Call' not found in wp-content/plugins/pricing-table-by-supsystic/classes/Twig/Node/Expression/Filter.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/pricing-table-by-supsystic/classes/Twig/TokenParser/If.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/pricing-table-by-supsystic/classes/Twig/Node/Expression/Test/Sameas.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/pricing-table-by-supsystic/classes/Twig/Node/Expression/Binary/Div.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'modulePts' not found in wp-content/plugins/pricing-table-by-supsystic/modules/mail/mod.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Error' not found in wp-content/plugins/pricing-table-by-supsystic/classes/Twig/Error/Syntax.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/pricing-table-by-supsystic/classes/Twig/Node/Expression/BlockReference.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Screenshots: Add a description for screenshot #11 in pricing-table-by-supsystic/assets to your readme.txt
You can take inspiration from this readme.txt

pricing-table-by-supsystic/pts.php 92% from 13 tests

This is the main PHP file of "Pricing Table by Supsystic" version 1.9.11, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 ("pricing-table-by-supsystic.php" instead of "pts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin56,875 lines of code in 477 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1691,3943,11723,838
PHP2602,1206,34118,603
PO File21,9923,9465,828
CSS402684085,487
SVG5003,117
Markdown1102

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity11.10
▷ Minimum class complexity1.00
▷ Maximum class complexity189.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces22
Traits0
Classes216
▷ Abstract classes209.26%
▷ Concrete classes19690.74%
▷ Final classes00.00%
Methods1,467
▷ Static methods22615.41%
▷ Public methods1,29388.14%
▷ Protected methods15210.36%
▷ Private methods221.50%
Functions73
▷ Named functions6994.52%
▷ Anonymous functions45.48%
Constants110
▷ Global constants6357.27%
▷ Class constants4742.73%
▷ Public constants47100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
88 PNG files occupy 1.67MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/_assets/tables/img/retro/1.png17.94KB19.30KB0.00%
assets/lib/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
assets/_assets/tables/img/sun-1.png7.25KB3.73KB▼ 48.53%
js/color_picker/images/map-opacity.png0.14KB0.09KB▼ 34.53%
assets/_assets/tables/img/model-agency/3.png71.16KB75.72KB0.00%