84% post-meta-box-order

Code Review | Post Meta Box Order

WordPress plugin Post Meta Box Order scored 84% from 54 tests.

About plugin

  • Plugin page: post-meta-box-order
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Jun 23, 2013
  • Latest release: Jul 10, 2016
  • Number of updates: 6
  • Update frequency: every 185.5 days
  • Top authors: m_uysl (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 2,444 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Server-side resources used by Post Meta Box Order
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.26 ▼3.34
Dashboard /wp-admin3.31 ▲0.0147.67 ▼2.68
Posts /wp-admin/edit.php3.36 ▲0.0144.29 ▼2.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.05 ▼14.30
Media Library /wp-admin/upload.php3.24 ▲0.0134.42 ▼1.12

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Post Meta Box Order: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.26 ▼0.891.70 ▼0.2342.84 ▼3.84
Dashboard /wp-admin2,206 ▲185.94 ▲1.0796.12 ▼21.5637.85 ▼7.57
Posts /wp-admin/edit.php2,068 ▼212.00 ▼0.0534.21 ▼3.5232.21 ▲1.23
Add New Post /wp-admin/post-new.php1,533 ▼423.28 ▲0.27674.89 ▼11.8155.37 ▼2.60
Media Library /wp-admin/upload.php1,388 ▼04.17 ▼0.0894.98 ▼7.8243.45 ▼3.53

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 does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/post-meta-box-order/post-meta-box-order.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: metabox, meta box, posts metabox, order, multisite

post-meta-box-order/post-meta-box-order.php Passed 13 tests

The primary PHP file in "Post Meta Box Order" version 2.0 is used by WordPress to initiate all plugin functionality
62 characters long description:
Easily change the order of the meta boxes on the posts screen.

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
Good job! No executable or dangerous file extensions detected36 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1203036

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin