89% admin-ide-dark-mode

Code Review | Admin IDE Dark Mode

WordPress plugin Admin IDE Dark Mode scored89%from 54 tests.

About plugin

  • Plugin page: admin-ide-dark-mode
  • Plugin version: 2.04
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 14, 2023
  • Latest release: Jul 31, 2023
  • Number of updates: 24
  • Update frequency: every 6.3 days
  • Top authors: rmstm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /323 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by Admin IDE Dark Mode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.08 ▼2.69
Dashboard /wp-admin3.32 ▲0.0247.99 ▼9.79
Posts /wp-admin/edit.php3.37 ▲0.0248.80 ▲1.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.82 ▼16.47
Media Library /wp-admin/upload.php3.24 ▲0.0239.14 ▲2.03
IDE Theme /wp-admin/options-general.php?page=aidm-admin-form3.2935.42

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Admin IDE Dark Mode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6514.46 ▲0.051.69 ▲0.0442.45 ▲1.22
Dashboard /wp-admin2,217 ▲324.90 ▲0.0199.39 ▼3.7339.62 ▼8.43
Posts /wp-admin/edit.php2,100 ▲112.04 ▲0.0536.07 ▼4.7037.62 ▲0.82
Add New Post /wp-admin/post-new.php1,532 ▲422.73 ▲4.68638.35 ▲4.7458.71 ▲1.88
Media Library /wp-admin/upload.php1,396 ▲84.14 ▼0.18105.90 ▲3.3647.03 ▲5.42
IDE Theme /wp-admin/options-general.php?page=aidm-admin-form1,7873.44104.0550.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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

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 everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: plugin file editor, ide, theme file editor, dark mode, codemirror...

admin-ide-dark-mode/admin-ide-dark-mode.php 85% from 13 tests

This is the main PHP file of "Admin IDE Dark Mode" version 2.04, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 142 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin3,182 lines of code in 79 files:
LanguageFilesBlank linesComment linesLines of code
CSS675663802,614
PHP810697374
JavaScript33823107
PO File1151887

PHP code Passed 2 tests

An overview 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.30
Average class complexity2.67
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin