90% remove-custom-fields-metabox

Code Review | Remove custom fields metabox

WordPress plugin Remove custom fields metabox scored90%from 54 tests.

About plugin

  • Plugin page: remove-custom-fie...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.3
  • WordPress version: 6.3.1
  • First release: Mar 14, 2016
  • Latest release: Feb 17, 2020
  • Number of updates: 11
  • Update frequency: every 130.7 days
  • Top authors: bradleyt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,721 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Remove custom fields metabox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.20 ▼4.15
Dashboard /wp-admin3.32 ▲0.0144.71 ▼5.74
Posts /wp-admin/edit.php3.37 ▲0.0143.31 ▼5.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.37 ▼18.78
Media Library /wp-admin/upload.php3.25 ▲0.0133.05 ▼0.00

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Remove custom fields metabox
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.35 ▲0.081.78 ▲0.1139.69 ▲0.80
Dashboard /wp-admin2,195 ▲155.59 ▼0.0780.98 ▼6.6637.64 ▼6.54
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0344.23 ▲0.5538.51 ▲2.22
Add New Post /wp-admin/post-new.php1,526 ▼223.19 ▲0.07646.36 ▲37.7948.66 ▼0.43
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.0594.85 ▼2.4844.79 ▼2.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: custom fields, postcustom, remove, performance, fields...

remove-custom-fields-metabox/remove-custom-fields-metabox.php Passed 13 tests

The principal PHP file in "Remove custom fields metabox" v. 1.0.1 is loaded by WordPress automatically on each request
68 characters long description:
Remove the custom fields metabox to potentially improve performance.

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
Success! There were no dangerous files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17823

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.83
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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
No PNG files were detected