99% advanced-options-editor

Code Review | Advanced Options Editor

WordPress plugin Advanced Options Editor scored 99% 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: 5.8.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

30+ active / 1,702 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼147.07ms] Passed 4 tests

A check of server-side resources used by Advanced Options Editor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0121.82 ▼1.18
Dashboard /wp-admin3.07 ▲0.0030.70 ▼8.81
Posts /wp-admin/edit.php3.12 ▲0.0128.92 ▼0.59
Add New Post /wp-admin/post-new.php5.44 ▼0.0067.97 ▼577.68
Media Library /wp-admin/upload.php3.01 ▲0.0125.52 ▲4.12
Advanced Options Editor /wp-admin/options-general.php?page=bdwmoe5.8928.99

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Options Editor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,678 ▲7715.71 ▼0.364.88 ▼1.6675.00 ▲0.37
Dashboard /wp-admin2,944 ▲486.12 ▼0.02115.13 ▼26.63166.11 ▼18.17
Posts /wp-admin/edit.php2,751 ▲453.22 ▼0.0264.15 ▲0.58137.37 ▼0.28
Add New Post /wp-admin/post-new.php3,702 ▼3315.39 ▼3.13436.37 ▼43.35159.82 ▼5.75
Media Library /wp-admin/upload.php1,757 ▲25.57 ▲0.03159.29 ▲14.71191.69 ▲10.24
Advanced Options Editor /wp-admin/options-general.php?page=bdwmoe11,1383.1974.21164.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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
Looking good! No server-side errors or output on direct access of PHP files

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

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Change advanced wp options from the admin), #2 (Editing Options)
You can look at the official readme.txt

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

"Advanced Options Editor" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as 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 considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin396 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP311125326
CSS121170

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin