84% reset-meta-box-positions

Code Review | Reset Meta Box Positions

WordPress plugin Reset Meta Box Positions scored84%from 54 tests.

About plugin

  • Plugin page: reset-meta-box-po...
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Sep 18, 2017
  • Latest release: Feb 17, 2021
  • Number of updates: 8
  • Update frequency: every 158.8 days
  • Top authors: dgwyer (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /2,581 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.03MB] [CPU: ▼5.48ms] Passed 4 tests

Analyzing server-side resources used by Reset Meta Box Positions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.17 ▼4.21
Dashboard /wp-admin3.34 ▲0.0346.36 ▼3.10
Posts /wp-admin/edit.php3.39 ▲0.0349.05 ▼7.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.04 ▼7.22
Media Library /wp-admin/upload.php3.26 ▲0.0335.69 ▼2.13
Reset Meta Box Positions /wp-admin/options-general.php?page=reset-meta-box-positions/reset-meta-box-positions.php3.2342.02

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Reset Meta Box Positions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.18 ▼1.252.33 ▲0.1246.15 ▲3.24
Dashboard /wp-admin2,210 ▲225.88 ▲0.94106.61 ▲3.4841.39 ▼2.56
Posts /wp-admin/edit.php2,093 ▲71.97 ▼0.0440.56 ▲1.0036.41 ▼5.65
Add New Post /wp-admin/post-new.php1,517 ▼1817.75 ▼5.52612.86 ▼68.4867.50 ▲13.09
Media Library /wp-admin/upload.php1,389 ▲44.21 ▲0.00100.77 ▼14.0442.10 ▼6.40
Reset Meta Box Positions /wp-admin/options-general.php?page=reset-meta-box-positions/reset-meta-box-positions.php8802.1923.3348.57

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/reset-meta-box-positions/reset-meta-box-positions.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: reset, position, meta box, admin, editor

reset-meta-box-positions/reset-meta-box-positions.php Passed 13 tests

Analyzing the main PHP file in "Reset Meta Box Positions" version 0.1.2
105 characters long description:
Reset the meta box positions on admin post editor screen for all post types, including custom post types.

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 plugin157 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14241129
JavaScript112328

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/facebook.png1.89KB1.10KB▼ 41.73%
images/info.png0.52KB0.46KB▼ 10.55%
images/twitter.png2.09KB1.30KB▼ 38.02%
images/yt.png1.38KB1.10KB▼ 20.55%