89% wp-options-editor

Code Review | WP Options Editor

WordPress plugin WP Options Editor scored 89% from 54 tests.

About plugin

  • Plugin page: wp-options-editor
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.4.2
  • WordPress version: 6.3.1
  • First release: Oct 19, 2014
  • Latest release: Mar 26, 2016
  • Number of updates: 10
  • Update frequency: every 52.4 days
  • Top authors: mikeselander (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

200+ active / 8,240 total downloads

Benchmarks

Plugin footprint 81% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.08MB] [CPU: ▲4.30ms] Passed 4 tests

Server-side resources used by WP Options Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.44 ▼1.77
Dashboard /wp-admin3.38 ▲0.0862.61 ▲7.58
Posts /wp-admin/edit.php3.43 ▲0.0860.29 ▼0.07
Add New Post /wp-admin/post-new.php5.97 ▲0.08124.91 ▲31.45
Media Library /wp-admin/upload.php3.31 ▲0.0846.94 ▲11.44
Manage wp_options /wp-admin/tools.php?page=options_editor6.80124.04

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics 0% from 4 tests

WP Options Editor: an overview of browser usage
It is time to focus on the following
  • Nodes: Try to keep the DOM nodes under 25,000 (currently 49,543 on /wp-admin/tools.php?page=options_editor)
  • Memory: You must limit browser memory usage to 75.00MB (currently 113.15MB on /wp-admin/tools.php?page=options_editor)
  • Script duration: Try to keep JavaScript execution under 1,500.00ms (currently 5,595.07ms on /wp-admin/tools.php?page=options_editor)
  • Layout duration:Total CSS layout time should be under 1,500.00ms (currently 1,572.98ms on /wp-admin/tools.php?page=options_editor)
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.25 ▼1.435.19 ▲3.0158.88 ▲17.04
Dashboard /wp-admin2,210 ▲45.84 ▲0.00111.98 ▲13.5943.80 ▲7.83
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0442.50 ▼13.1937.96 ▲4.03
Add New Post /wp-admin/post-new.php1,400 ▼14417.89 ▼0.59629.52 ▼2.8150.64 ▼6.88
Media Library /wp-admin/upload.php1,389 ▲44.12 ▼0.09136.85 ▲39.1560.09 ▲18.72
Manage wp_options /wp-admin/tools.php?page=options_editor49,543113.155,595.071,572.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: development, delete, wp_options, wp options table, add...

wp-options-editor/wp-options-editor.php Passed 13 tests

The main file in "WP Options Editor" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
81 characters long description:
More easily view, edit, add, and delete all of your WP Options from the dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected804 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript163119396
PHP2128171380
CSS16028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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 are no PNG files in this plugin