84% ig-pricing-table

Code Review | IG Pricing table

WordPress plugin IG Pricing table scored 84% from 54 tests.

About plugin

  • Plugin page: ig-pricing-table
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.4
  • WordPress version: 6.3.1
  • First release: Aug 27, 2015
  • Latest release: Jan 15, 2016
  • Number of updates: 15
  • Update frequency: every 9.4 days
  • Top authors: iografica (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 2,586 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼0.02ms] 75% from 4 tests

A check of server-side resources used by IG Pricing table
It is recommended to improve the following
  • CPU: Try to keep total CPU usage under 500.00ms (currently 860.47ms on /wp-admin/edit.php?post_type=ig_pricing_table&page=ig-pricing-table-getting-started)
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1945.84 ▼3.39
Dashboard /wp-admin3.49 ▲0.1851.26 ▲2.15
Posts /wp-admin/edit.php3.58 ▲0.2353.49 ▲7.25
Add New Post /wp-admin/post-new.php6.07 ▲0.1990.19 ▼6.11
Media Library /wp-admin/upload.php3.41 ▲0.1842.14 ▲10.41
Add New /wp-admin/post-new.php?post_type=ig_pricing_table3.4949.77
Settings /wp-admin/edit.php?post_type=ig_pricing_table&page=ig-pricing-table-settings-page3.3840.12
All Pricing Tables /wp-admin/edit.php?post_type=ig_pricing_table3.4445.54
Getting Started /wp-admin/edit.php?post_type=ig_pricing_table&page=ig-pricing-table-getting-started3.53860.47

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for IG Pricing table
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.73 ▼0.504.56 ▲2.8641.59 ▼0.80
Dashboard /wp-admin2,241 ▲535.88 ▲1.04109.34 ▲5.6839.77 ▼3.28
Posts /wp-admin/edit.php2,127 ▲382.00 ▼0.0438.21 ▼2.7535.47 ▼1.85
Add New Post /wp-admin/post-new.php1,565 ▲1823.39 ▲5.25675.17 ▲29.9365.04 ▲1.15
Media Library /wp-admin/upload.php1,426 ▲384.24 ▲0.03101.34 ▼2.4448.26 ▲1.62
Add New /wp-admin/post-new.php?post_type=ig_pricing_table2,3882.6551.9875.04
Settings /wp-admin/edit.php?post_type=ig_pricing_table&page=ig-pricing-table-settings-page8352.2027.7125.39
All Pricing Tables /wp-admin/edit.php?post_type=ig_pricing_table1,0931.9630.6729.99
Getting Started /wp-admin/edit.php?post_type=ig_pricing_table&page=ig-pricing-table-getting-started1,2182.0222.5445.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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
Almost there! Just fix the following items
  • 17× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined variable: active in wp-content/plugins/ig-pricing-table/includes/ig-pricing-table-form.php on line 45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ig-pricing-table/welcome/sections/welcome-footer.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ig-pricing-table/includes/ig-pricing-table-function.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ig-pricing-table/welcome/sections/welcome-free-resources.php:7
    • > PHP Notice
      Undefined variable: number in wp-content/plugins/ig-pricing-table/includes/ig-pricing-table-form.php on line 45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ig-pricing-table/welcome/welcome-screen.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ig-pricing-table/includes/ig-pricing-table-settings.php:3
    • > PHP Notice
      Undefined variable: number in wp-content/plugins/ig-pricing-table/includes/ig-pricing-table-form.php on line 22
    • > PHP Notice
      Undefined variable: number in wp-content/plugins/ig-pricing-table/includes/ig-pricing-table-form.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ig-pricing-table/includes/ig-pricing-table-form.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Pricing tables), #2 (Pricing tables customization)
You can take inspiration from this readme.txt

ig-pricing-table/ig-pricing-table.php Passed 13 tests

"IG Pricing table" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
A responsive and simple way to present your offer to your visitors.

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
No dangerous file extensions were detected1,656 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP105292788
CSS31517511
PO File2148154357

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions29
▷ Named functions29100.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.13MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/pricing-tables.png136.54KB40.85KB▼ 70.08%