84% unified-meta-box-order

Code Review | Unified Meta Box Order

WordPress plugin Unified Meta Box Order scored84%from 54 tests.

About plugin

  • Plugin page: unified-meta-box-...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.9
  • WordPress version: 6.3.1
  • First release: May 29, 2018
  • Latest release: May 30, 2018
  • Number of updates: 4
  • Update frequency: every 5.5 days
  • Top authors: bdombro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,115 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by Unified Meta Box Order
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0344.94 ▲4.13
Dashboard /wp-admin3.35 ▲0.0454.82 ▼4.40
Posts /wp-admin/edit.php3.40 ▲0.0455.55 ▲4.12
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.69 ▼19.38
Media Library /wp-admin/upload.php3.27 ▲0.0438.24 ▲2.58

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Unified Meta Box Order: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.101.69 ▼0.1244.73 ▲5.78
Dashboard /wp-admin2,192 ▲215.64 ▲0.0197.26 ▼3.8941.47 ▼4.12
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0236.01 ▼3.2034.06 ▼0.51
Add New Post /wp-admin/post-new.php1,526 ▼023.27 ▼0.07681.08 ▲30.8154.40 ▼6.84
Media Library /wp-admin/upload.php1,397 ▲34.20 ▲0.02110.26 ▼0.5946.62 ▲0.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function GlobalMetaBoxOrder\\is_admin() in wp-content/plugins/unified-meta-box-order/index.php:448

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

unified-meta-box-order/index.php 92% from 13 tests

The entry point to "Unified Meta Box Order" version 1.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("unified-meta-box-order.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin161 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1114183157
JavaScript1254

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity13.50
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods215.38%
▷ Protected methods1184.62%
▷ Private methods00.00%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin