88% ind-css3-pricing-table

Code Review | IND Pricing Table

WordPress plugin IND Pricing Table scored 88% from 54 tests.

About plugin

  • Plugin page: ind-css3-pricing-...
  • Plugin version: 2.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8.1
  • WordPress version: 5.9.2
  • First release: Sep 13, 2013
  • Latest release: Aug 27, 2015
  • Number of updates: 57
  • Update frequency: every 12.5 days
  • Top authors: artheme (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active / 6,941 total downloads

Benchmarks

Plugin footprint Passed 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.16MB] [CPU: ▼297.54ms] Passed 4 tests

Server-side resources used by IND Pricing Table
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2469.31 ▲13.26
Dashboard /wp-admin3.59 ▲0.1937.04 ▼0.76
Posts /wp-admin/edit.php3.82 ▲0.1843.09 ▲3.14
Add New Post /wp-admin/post-new.php7.06 ▲0.0993.10 ▼1,178.21
Media Library /wp-admin/upload.php3.47 ▲0.1730.50 ▼14.33
All Tables /wp-admin/edit.php?post_type=indtable3.5833.76
Create New Table /wp-admin/post-new.php?post_type=indtable3.7542.06
Documentation /wp-admin/edit.php?post_type=indtable&page=documentation3.4425.18

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for IND Pricing Table
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,828 ▲7415.93 ▲0.316.36 ▲0.652.01 ▼0.37
Dashboard /wp-admin2,932 ▲716.22 ▲0.02119.83 ▼22.42187.90 ▼28.31
Posts /wp-admin/edit.php2,731 ▲373.25 ▲0.0263.91 ▲0.55141.80 ▼1.54
Add New Post /wp-admin/post-new.php1,780 ▲6321.34 ▲0.10409.96 ▼63.49232.42 ▲76.22
Media Library /wp-admin/upload.php1,735 ▲375.57 ▲0.03131.31 ▼15.30253.51 ▲61.19
All Tables /wp-admin/edit.php?post_type=indtable1,4173.0960.36115.49
Create New Table /wp-admin/post-new.php?post_type=indtable1,8782.6984.98215.09
Documentation /wp-admin/edit.php?post_type=indtable&page=documentation1,0042.3784.53135.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ind-css3-pricing-table/ind_css3_table.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ind-css3-pricing-table/css/indstyle.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/ind-css3-pricing-table/css/colmcolrs.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/post-new.php?post_type=indtable
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'webkit')" "TypeError: Cannot read properties of undefined (reading 'webkit')\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ind-css3-pricing-table/js/indajax.js?ver=5.9.2:4:15)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2:2:30340)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=indtable
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.9.2 1:31702 Uncaught TypeError: Cannot read properties of undefined (reading 'webkit')
    • > GET request to /wp-admin/post-new.php?post_type=indtable
    • > Network (severe)
    http://affiliate.godaddy.com/ads/5F32D796F9C1C466894900A90CFE414D519C0720095A6640533B73A806A12B17E00E194D24F108E4286847090203A72011C6D6F6B0570844030A383F7B806FD8 - Failed to load resource: net::ERR_NAME_NOT_RESOLVED

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === ind-css3-pricing-table === )
The official readme.txt is a good inspiration

ind-css3-pricing-table/ind_css3_table.php 92% from 13 tests

"IND Pricing Table" version 2.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ind-css3-pricing-table.php" instead of "ind_css3_table.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
Success! There were no dangerous files found in this plugin1,659 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3137771,328
CSS26229203
JavaScript1158128

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions23
▷ Named functions23100.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
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
img/table.png1.35KB0.53KB▼ 60.52%