84% edit-custom-fields

Code Review | Edit Custom Fields

WordPress plugin Edit Custom Fields scored84%from 54 tests.

About plugin

  • Plugin page: edit-custom-fields
  • Plugin version: 0.1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jul 16, 2013
  • Latest release: Jan 5, 2023
  • Number of updates: 47
  • Update frequency: every 73.6 days
  • Top authors: topdownjimmy (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

2,000+ active /17,291 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Edit Custom Fields
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.29 ▼4.59
Dashboard /wp-admin3.31 ▼0.0442.86 ▼19.24
Posts /wp-admin/edit.php3.36 ▲0.0043.49 ▲2.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.19 ▼0.65
Media Library /wp-admin/upload.php3.23 ▲0.0034.97 ▲3.10
Edit Custom Fields /wp-admin/tools.php?page=ecf-options3.2031.13

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Edit Custom Fields
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.29 ▼0.261.63 ▼0.1242.97 ▼0.75
Dashboard /wp-admin2,202 ▲255.63 ▲0.0088.40 ▼10.0339.07 ▼2.88
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0438.03 ▲5.0334.69 ▲1.26
Add New Post /wp-admin/post-new.php1,529 ▼523.17 ▲4.95658.63 ▲31.1649.12 ▼18.23
Media Library /wp-admin/upload.php1,404 ▲74.16 ▼0.0293.40 ▼1.4539.95 ▲0.11
Edit Custom Fields /wp-admin/tools.php?page=ecf-options7701.9923.4925.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edit-custom-fields/edit-custom-fields.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === edit-custom-fields === )
You can look at the official readme.txt

edit-custom-fields/edit-custom-fields.php Passed 13 tests

The entry point to "Edit Custom Fields" version 0.1.10 is a PHP file that has certain tags in its header comment area
51 characters long description:
A simple interface to edit or delete Custom Fields.

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 plugin170 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15714170

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions2
▷ Named functions2100.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 were not PNG files found in your plugin