84% hide-noisy-metaboxes

Code Review | Hide Noisy Metaboxes

WordPress plugin Hide Noisy Metaboxes scored84%from 54 tests.

About plugin

  • Plugin page: hide-noisy-metaboxes
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2013
  • Latest release: Mar 26, 2016
  • Number of updates: 6
  • Update frequency: every 190.7 days
  • Top authors: aaronholbrook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /848 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Hide Noisy Metaboxes
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.95 ▼9.54
Dashboard /wp-admin3.31 ▲0.0149.37 ▼3.93
Posts /wp-admin/edit.php3.36 ▲0.0148.89 ▼0.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.48 ▼7.72
Media Library /wp-admin/upload.php3.23 ▲0.0137.49 ▲0.40

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

Filesystem and database footprint
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
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide Noisy Metaboxes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,773 ▲2714.24 ▼0.122.01 ▲0.3048.16 ▲3.94
Dashboard /wp-admin2,173 ▼155.53 ▲0.6489.07 ▼20.3632.66 ▼8.65
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0039.60 ▲2.0735.67 ▲0.55
Add New Post /wp-admin/post-new.php1,533 ▲1423.29 ▲0.04678.83 ▲49.0350.61 ▼22.98
Media Library /wp-admin/upload.php1,382 ▼64.21 ▼0.0394.54 ▼16.9842.83 ▼1.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-noisy-metaboxes/hide-noisy-metaboxes.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
3 plugin tags: clean, clutter, remove-cruft

hide-noisy-metaboxes/hide-noisy-metaboxes.php 92% from 13 tests

"Hide Noisy Metaboxes" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin19 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP131417
Markdown1102

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin