90% editor-theme-options

Code Review | Editor Theme Options

WordPress plugin Editor Theme Options scored 90% from 54 tests.

About plugin

  • Plugin page: editor-theme-options
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.1-3.9
  • WordPress version: 6.3.1
  • First release: Feb 4, 2014
  • Latest release: Apr 17, 2014
  • Number of updates: 6
  • Update frequency: every 12.2 days
  • Top authors: cliffseal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 4,680 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Editor Theme Options
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.41 ▼11.29
Dashboard /wp-admin3.31 ▲0.0146.15 ▼5.25
Posts /wp-admin/edit.php3.36 ▲0.0048.47 ▲0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.21 ▼9.95
Media Library /wp-admin/upload.php3.23 ▲0.0034.54 ▼0.07

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Editor Theme Options
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.151.69 ▼1.3242.80 ▼15.79
Dashboard /wp-admin2,200 ▲125.83 ▲0.94104.42 ▼14.6840.59 ▼1.84
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0433.83 ▲0.7934.38 ▲2.02
Add New Post /wp-admin/post-new.php1,514 ▼917.67 ▼5.46643.42 ▲47.2551.79 ▲3.78
Media Library /wp-admin/upload.php1,382 ▼34.43 ▲0.2396.84 ▼2.7644.15 ▼0.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The SRP test was a success

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

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: widgets, theme options, menu, appearance, access...

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

"Editor Theme Options" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
61 characters long description:
Allow editors to access theme options in the Appearance menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin91 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33711665
Markdown119026

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods571.43%
▷ Public methods457.14%
▷ Protected methods00.00%
▷ Private methods342.86%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin