78% responsive-pricing-info-tables

Code Review | Responsive Pricing Tables and Info Boxes

WordPress plugin Responsive Pricing Tables and Info Boxes scored78%from 54 tests.

About plugin

  • Plugin page: responsive-pricin...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2018
  • Latest release: Apr 29, 2018
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: shariqkhan2012 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.52MB] [CPU: ▲0.10ms] Passed 4 tests

Server-side resources used by Responsive Pricing Tables and Info Boxes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.00 ▲0.5347.10 ▲7.46
Dashboard /wp-admin3.85 ▲0.5156.05 ▼4.33
Posts /wp-admin/edit.php3.89 ▲0.5361.09 ▲10.60
Add New Post /wp-admin/post-new.php6.44 ▲0.5586.43 ▼9.00
Media Library /wp-admin/upload.php3.75 ▲0.5243.18 ▲6.27
All Tables /wp-admin/edit.php?post_type=rptb_info_table3.8044.72
Add New /wp-admin/post-new.php?post_type=rptb_info_table3.9952.34

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

Browser metrics Passed 4 tests

Responsive Pricing Tables and Info Boxes: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,108 ▲36219.89 ▲5.268.32 ▲6.8243.37 ▲5.74
Dashboard /wp-admin2,397 ▲2179.43 ▲3.76165.70 ▲73.9637.14 ▼5.01
Posts /wp-admin/edit.php2,333 ▲2336.74 ▲4.79119.12 ▲75.6135.91 ▼0.79
Add New Post /wp-admin/post-new.php1,580 ▲5426.42 ▲3.43735.17 ▲59.8337.18 ▼19.23
Media Library /wp-admin/upload.php1,467 ▲677.29 ▲3.04138.58 ▲24.8042.35 ▼4.15
All Tables /wp-admin/edit.php?post_type=rptb_info_table1,3187.0398.6128.10
Add New /wp-admin/post-new.php?post_type=rptb_info_table3,71111.87326.5754.93

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/responsive-pricing-info-tables/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 217× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/responsive-pricing-info-tables/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\Test\\TestCase' not found in wp-content/plugins/responsive-pricing-info-tables/vendor/composer/installers/tests/Composer/Installers/Test/BitrixInstallerTest.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/responsive-pricing-info-tables/vendor/htmlburger/carbon-fields/core/Field/Hidden_Field.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/responsive-pricing-info-tables/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/responsive-pricing-info-tables/vendor/htmlburger/carbon-fields/core/Field/Predefined_Options_Field.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/responsive-pricing-info-tables/vendor/composer/installers/src/Composer/Installers/MakoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Meta_Datastore' not found in wp-content/plugins/responsive-pricing-info-tables/vendor/htmlburger/carbon-fields/core/Datastore/Network_Datastore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/responsive-pricing-info-tables/vendor/composer/installers/src/Composer/Installers/BonefishInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/responsive-pricing-info-tables/vendor/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/responsive-pricing-info-tables/vendor/composer/installers/src/Composer/Installers/RedaxoInstaller.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: "shariqkhanfreelancer"
The official readme.txt might help

responsive-pricing-info-tables/rptb.php 92% from 13 tests

"Responsive Pricing Tables and Info Boxes" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("responsive-pricing-info-tables.php" instead of "rptb.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin82,609 lines of code in 467 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14615,84827,27965,179
PHP2532,8566,85311,979
PO File151,3601,9723,049
CSS334082331,364
JSON1000639
Markdown7790349
YAML27027
XML12023

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity4.96
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces25
Interfaces5
Traits0
Classes225
▷ Abstract classes135.78%
▷ Concrete classes21294.22%
▷ Final classes10.47%
Methods965
▷ Static methods929.53%
▷ Public methods76679.38%
▷ Protected methods19019.69%
▷ Private methods90.93%
Functions121
▷ Named functions4234.71%
▷ Anonymous functions7965.29%
Constants33
▷ Global constants824.24%
▷ Class constants2575.76%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/frontend/nav_next.png0.85KB0.97KB0.00%
assets/css/frontend/nav_prev.png0.86KB0.97KB0.00%