99% admin-dark-mode

Code Review | Admin Dark Mode

WordPress plugin Admin Dark Mode scored 99% from 54 tests.

About plugin

  • Plugin page: admin-dark-mode
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 5.9.2
  • First release: Mar 16, 2018
  • Latest release: Sep 1, 2018
  • Number of updates: 11
  • Update frequency: every 90.0 days
  • Top authors: jtigerson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,355 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Admin Dark Mode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0557.59 ▲11.79
Dashboard /wp-admin3.42 ▲0.0133.21 ▼3.15
Posts /wp-admin/edit.php3.65 ▲0.0137.38 ▼2.24
Add New Post /wp-admin/post-new.php6.90 ▼0.0791.16 ▼1,185.68
Media Library /wp-admin/upload.php3.31 ▲0.0123.40 ▼7.47

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Admin Dark Mode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,827 ▲7315.93 ▲0.376.35 ▲0.652.56 ▼0.65
Dashboard /wp-admin2,916 ▲556.24 ▲0.08120.72 ▼17.21151.60 ▼8.36
Posts /wp-admin/edit.php2,712 ▲183.24 ▲0.0173.67 ▲10.47155.07 ▲16.25
Add New Post /wp-admin/post-new.php1,710 ▲2019.30 ▼2.55400.57 ▼64.00157.71 ▼31.44
Media Library /wp-admin/upload.php1,719 ▲215.57 ▲0.04134.89 ▼6.57182.54 ▼12.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
No output text or server-side errors detected 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, but this is not an exhaustive test


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

admin-dark-mode/admin-dark-mode.php 92% from 13 tests

Analyzing the main PHP file in "Admin Dark Mode" version 1.1
Please take the time to fix the following:
  • 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 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,964 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods375.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.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