10% remove-fields

Code Review | Remove Fields

WordPress plugin Remove Fields scored10%from 54 tests.

About plugin

  • Plugin page: remove-fields
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 5, 2013
  • Latest release: Jul 22, 2016
  • Number of updates: 15
  • Update frequency: every 72.2 days
  • Top authors: nabil_kadimi (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

300+ active /6,322 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/remove-fields/remove-fields.php+202
    A non well formed numeric value encountered

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.40ms] Passed 4 tests

A check of server-side resources used by Remove Fields
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.23 ▼3.84
Dashboard /wp-admin3.53 ▲0.2348.79 ▼1.35
Posts /wp-admin/edit.php3.52 ▲0.1746.52 ▲4.76
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.10 ▼8.54
Media Library /wp-admin/upload.php3.30 ▲0.0735.30 ▲0.15

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 106 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Remove Fields: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.26 ▼0.962.42 ▲0.3042.43 ▼9.66
Dashboard /wp-admin2,211 ▲204.88 ▼0.1097.34 ▼11.0337.63 ▲1.11
Posts /wp-admin/edit.php2,094 ▲52.06 ▲0.0440.00 ▼1.1234.10 ▼2.45
Add New Post /wp-admin/post-new.php1,536 ▲723.20 ▲4.35616.71 ▼12.4649.30 ▲0.13
Media Library /wp-admin/upload.php1,390 ▲24.28 ▲0.0696.16 ▲3.2239.77 ▼0.53

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/remove-fields/vendor/raveren/kint/examples/overview.php
  • 21× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'kintVariableData' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/inc/kintParser.class.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/classstatics.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/microtime.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/xml.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function did_action() in wp-content/plugins/remove-fields/vendor/tgmpa/tgm-plugin-activation/class-tgm-plugin-activation.php:2109
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/objectiterateable.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/color.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/classmethods.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/splobjectstorage.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'kintParser' not found in wp-content/plugins/remove-fields/vendor/raveren/kint/parsers/custom/json.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === remove-fields === )
Please take inspiration from this readme.txt

remove-fields/remove-fields.php 92% from 13 tests

The entry point to "Remove Fields" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin12,062 lines of code in 76 files:
LanguageFilesBlank linesComment linesLines of code
PO File171,4491,9934,842
PHP361,1632,5944,615
Markdown52240880
LESS513439505
CSS403397
JavaScript27015362
YAML21127259
JSON400191
XML10011

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity28.73
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes33
▷ Abstract classes26.06%
▷ Concrete classes3193.94%
▷ Final classes00.00%
Methods214
▷ Static methods6429.91%
▷ Public methods13864.49%
▷ Protected methods4420.56%
▷ Private methods3214.95%
Functions25
▷ Named functions1664.00%
▷ Anonymous functions936.00%
Constants13
▷ Global constants215.38%
▷ Class constants1184.62%
▷ Public constants11100.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
No PNG images were found in this plugin