84% unsortable-meta-box

Code Review | Unsortable Meta Box

WordPress plugin Unsortable Meta Box scored84%from 54 tests.

About plugin

  • Plugin page: unsortable-meta-box
  • Plugin version: 0.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2014
  • Latest release: Jan 1, 2015
  • Number of updates: 10
  • Update frequency: every 34.4 days
  • Top authors: 1fixdotio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,797 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.21ms] Passed 4 tests

This is a short check of server-side resources used by Unsortable Meta Box
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.81 ▼4.20
Dashboard /wp-admin3.37 ▲0.0755.01 ▼2.25
Posts /wp-admin/edit.php3.49 ▲0.1352.91 ▼0.84
Add New Post /wp-admin/post-new.php5.98 ▲0.0989.45 ▼13.47
Media Library /wp-admin/upload.php3.30 ▲0.0739.24 ▼0.90
Unsortable Meta Box /wp-admin/options-general.php?page=unsortable-meta-box3.2733.18

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
unsortable-meta-box
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
umb-display-activation-message
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Unsortable Meta Box
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,733 ▼2810.75 ▼3.601.69 ▼0.1042.02 ▼3.37
Dashboard /wp-admin2,136 ▼382.62 ▼3.0456.53 ▼41.3440.47 ▼4.23
Posts /wp-admin/edit.php2,104 ▲42.04 ▲0.0534.74 ▼1.8134.46 ▼3.84
Add New Post /wp-admin/post-new.php1,525 ▼322.91 ▼0.25672.86 ▲26.9636.87 ▼29.22
Media Library /wp-admin/upload.php1,404 ▲74.17 ▼0.0194.94 ▼4.6846.32 ▲1.47
Unsortable Meta Box /wp-admin/options-general.php?page=unsortable-meta-box9072.0126.1128.33

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/unsortable-meta-box/admin/views/admin.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'Unsortable_Meta_Box' not found in wp-content/plugins/unsortable-meta-box/admin/includes/settings.php:34

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: disable-dragging, reset-positions, meta-box, unsort

unsortable-meta-box/unsortable-meta-box.php Passed 13 tests

Analyzing the main PHP file in "Unsortable Meta Box" version 0.9.0
56 characters long description:
Disable dragging of meta boxes and reset their positions

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected373 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7154341314
PO File1101542
JavaScript14111
CSS1116

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity12.00
▷ Minimum class complexity11.00
▷ Maximum class complexity13.00
Average method complexity2.22
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods829.63%
▷ Public methods2177.78%
▷ Protected methods00.00%
▷ Private methods622.22%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected