84% ig-custom-metaboxes

Code Review | iG:Custom Metaboxes

WordPress plugin iG:Custom Metaboxes scored 84% from 54 tests.

About plugin

  • Plugin page: ig-custom-metaboxes
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2015
  • Latest release: Feb 24, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: amit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,001 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

An overview of server-side resources used by iG:Custom Metaboxes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.74 ▼6.06
Dashboard /wp-admin3.31 ▲0.0142.70 ▼3.75
Posts /wp-admin/edit.php3.36 ▲0.0148.30 ▼0.23
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.74 ▼11.22
Media Library /wp-admin/upload.php3.23 ▲0.0135.35 ▲1.45

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

iG:Custom Metaboxes: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼0.994.46 ▲2.6645.24 ▼1.56
Dashboard /wp-admin2,209 ▲384.81 ▼0.0398.27 ▼17.9241.62 ▼6.66
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0440.53 ▲1.9735.60 ▲0.05
Add New Post /wp-admin/post-new.php1,534 ▲123.46 ▲0.27678.92 ▲47.5655.32 ▲5.68
Media Library /wp-admin/upload.php1,391 ▼04.24 ▲0.0497.32 ▼8.4943.60 ▲1.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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 fix the following items
  • 22× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'iG\\Metabox\\Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/select-field.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'iG\\Metabox\\Text_Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/number-field.php:10
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/ig-custom-metaboxes/templates/field-ui/input.php on line 8
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/ig-custom-metaboxes/templates/field-ui/input.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'iG\\Metabox\\Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/text-field.php:12
    • > PHP Notice
      Undefined variable: attributes in wp-content/plugins/ig-custom-metaboxes/templates/field-ui/input-radio.php on line 8
    • > PHP Fatal error
      Uncaught Error: Class 'iG\\Metabox\\Text_Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/email-field.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'iG\\Metabox\\Text_Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/color-field.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ig-custom-metaboxes/templates/field-ui/input-color.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'iG\\Metabox\\Text_Field' not found in wp-content/plugins/ig-custom-metaboxes/classes/checkbox-field.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

ig-custom-metaboxes/ig-custom-metaboxes.php 92% from 13 tests

The main PHP script in "iG:Custom Metaboxes" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 191 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected962 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP20369680881
Markdown110065
JavaScript18916

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity10.46
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits1
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods89
▷ Static methods66.74%
▷ Public methods6674.16%
▷ Protected methods2224.72%
▷ Private methods11.12%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin