84% list-more-custom-field-names

Code Review | List More Custom Field Names

WordPress plugin List More Custom Field Names scored84%from 54 tests.

About plugin

  • Plugin page: list-more-custom-...
  • Plugin version: 1.3.9
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.3
  • WordPress version: 6.3.1
  • First release: Jun 30, 2009
  • Latest release: Aug 16, 2023
  • Number of updates: 30
  • Update frequency: every 173.1 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /7,885 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 gracefully, with no errors

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

This is a short check of server-side resources used by List More Custom Field Names
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.70 ▼7.48
Dashboard /wp-admin3.31 ▼0.0346.64 ▼17.68
Posts /wp-admin/edit.php3.36 ▲0.0049.58 ▼0.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.45 ▼19.04
Media Library /wp-admin/upload.php3.23 ▲0.0039.58 ▲0.05

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for List More Custom Field Names
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.31 ▲0.081.73 ▼0.2843.43 ▼0.27
Dashboard /wp-admin2,198 ▲275.65 ▲0.0492.11 ▲0.8840.12 ▼0.65
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0339.72 ▲0.3236.06 ▲0.31
Add New Post /wp-admin/post-new.php1,545 ▲523.44 ▲0.15661.52 ▼37.5461.90 ▲6.27
Media Library /wp-admin/upload.php1,403 ▲34.31 ▲0.0995.63 ▼6.7545.61 ▼0.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/list-more-custom-field-names/tests/phpunit/bootstrap.php

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 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
7 plugin tags: coffee2code, meta, admin, edit page, keys...

list-more-custom-field-names/list-more-custom-field-names.php Passed 13 tests

The main PHP script in "List More Custom Field Names" version 1.3.9 is automatically included on every request by WordPress
109 characters long description:
Allows for more existing custom field names to be listed in the dropdown selection field when writing a post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin274 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
Markdown3420155
PHP4387379
Bourne Shell16221
XML10014
JSON1005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods112.50%
▷ Private methods00.00%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin