89% transform-meta-boxes

Code Review | Transform Meta Boxes

WordPress plugin Transform Meta Boxes scored89%from 54 tests.

About plugin

  • Plugin page: transform-meta-boxes
  • Plugin version: 0.1.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 24, 2016
  • Latest release: Nov 8, 2023
  • Number of updates: 17
  • Update frequency: every 163.8 days
  • Top authors: keith_wp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /951 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.98ms] Passed 4 tests

Server-side resources used by Transform Meta Boxes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.73 ▼7.77
Dashboard /wp-admin3.35 ▲0.0445.18 ▼3.07
Posts /wp-admin/edit.php3.40 ▲0.0448.90 ▲4.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.91 ▼14.32
Media Library /wp-admin/upload.php3.27 ▲0.0437.49 ▲1.23
Transform Meta Boxes /wp-admin/options-general.php?page=TransformMetaBoxesPlugin/settings.php3.2427.95

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

Browser metrics Passed 4 tests

Checking browser requirements for Transform Meta Boxes
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5714.72 ▲0.651.80 ▼0.0138.54 ▼8.80
Dashboard /wp-admin2,199 ▲195.59 ▼0.0494.70 ▼1.5043.27 ▲0.18
Posts /wp-admin/edit.php2,104 ▲41.96 ▲0.0040.01 ▲4.0236.09 ▲0.10
Add New Post /wp-admin/post-new.php1,534 ▲823.24 ▼0.50584.44 ▼116.2742.99 ▼9.06
Media Library /wp-admin/upload.php1,407 ▲164.14 ▼0.0297.89 ▼4.0741.44 ▼1.01
Transform Meta Boxes /wp-admin/options-general.php?page=TransformMetaBoxesPlugin/settings.php8342.0026.9830.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

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:
  • Requires at least: Invalid version format
The official readme.txt is a good inspiration

transform-meta-boxes/transform-meta-boxes.php 92% from 13 tests

The main PHP file in "Transform Meta Boxes" ver. 0.1.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 257 characters long)

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 detected270 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25413205
CSS11165

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity27.00
▷ Minimum class complexity22.00
▷ Maximum class complexity32.00
Average method complexity4.06
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods15.88%
▷ Public methods1376.47%
▷ Protected methods00.00%
▷ Private methods423.53%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin