89% advanced-options-editor

Code Review | Advanced Options Editor

WordPress plugin Advanced Options Editor scored89%from 54 tests.

About plugin

  • Plugin page: advanced-options-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.8
  • WordPress version: 6.3.1
  • First release: Jul 26, 2017
  • Latest release: Jul 27, 2017
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: Jules Colle (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,935 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by Advanced Options Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.92 ▲0.03
Dashboard /wp-admin3.31 ▲0.0143.64 ▼4.16
Posts /wp-admin/edit.php3.36 ▲0.0148.50 ▼0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.19 ▲0.80
Media Library /wp-admin/upload.php3.24 ▲0.0131.23 ▼3.20
Advanced Options Editor /wp-admin/options-general.php?page=bdwmoe6.1138.53

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Advanced Options Editor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲5314.48 ▲0.191.60 ▼0.6341.39 ▼5.36
Dashboard /wp-admin2,216 ▲284.83 ▼0.1298.66 ▼17.9839.41 ▼3.41
Posts /wp-admin/edit.php2,099 ▲102.00 ▼0.0239.00 ▲0.7534.82 ▼0.78
Add New Post /wp-admin/post-new.php1,523 ▼1123.08 ▲0.02666.47 ▲16.1357.35 ▼20.27
Media Library /wp-admin/upload.php1,401 ▲134.22 ▲0.0594.35 ▼4.5841.31 ▼1.38
Advanced Options Editor /wp-admin/options-general.php?page=bdwmoe7,9812.0837.56106.61

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Change advanced wp options from the admin), #2 (Editing Options)
The official readme.txt might help

advanced-options-editor/options-editor.php 92% from 13 tests

The main file in "Advanced Options Editor" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-options-editor.php" instead of "options-editor.php")

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 plugin396 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP311125326
CSS121170

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin