90% cubecolour-metabox-glue

Code Review | Metabox Glue

WordPress plugin Metabox Glue scored 90% from 54 tests.

About plugin

  • Plugin page: cubecolour-metabo...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.0
  • WordPress version: 6.3.1
  • First release: Jan 9, 2016
  • Latest release: May 25, 2022
  • Number of updates: 46
  • Update frequency: every 50.6 days
  • Top authors: numeeja (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,932 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.61ms] Passed 4 tests

Server-side resources used by Metabox Glue
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.98 ▲0.33
Dashboard /wp-admin3.32 ▲0.0249.47 ▲0.80
Posts /wp-admin/edit.php3.37 ▲0.0241.30 ▼8.80
Add New Post /wp-admin/post-new.php5.95 ▲0.0681.84 ▼14.23
Media Library /wp-admin/upload.php3.24 ▲0.0234.61 ▲0.25

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
cc_metabox_glue
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Metabox Glue
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.61 ▼0.794.57 ▲2.7443.17 ▲1.90
Dashboard /wp-admin2,206 ▲184.82 ▼1.08112.43 ▲9.9042.14 ▼4.54
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.1535.37 ▼5.7735.24 ▼0.28
Add New Post /wp-admin/post-new.php1,520 ▼1321.52 ▼2.03622.38 ▼31.3857.01 ▲4.28
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.1193.01 ▼7.1440.53 ▼8.08

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: glue, admin, android, meta box, tablet...

cubecolour-metabox-glue/cubecolour-metabox-glue.php Passed 13 tests

Analyzing the main PHP file in "Metabox Glue" version 1.3.0
79 characters long description:
Glues the post/page editor metaboxes so they cannot be repositioned by dragging

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin87 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3394664
JavaScript114323

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions7
▷ Named functions7100.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
No PNG images were found in this plugin