84% admin-color-schemes

Code Review | Admin Color Schemes

WordPress plugin Admin Color Schemes scored84%from 54 tests.

About plugin

  • Plugin page: admin-color-schemes
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.9
  • WordPress version: 6.3.1
  • First release: Dec 8, 2013
  • Latest release: Jan 31, 2022
  • Number of updates: 17
  • Update frequency: every 176.5 days
  • Top authors: ryelle (88.24%)helen (17.65%)

Code review

54 tests

User reviews

26 reviews

Install metrics

6,000+ active /53,800 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.48ms] Passed 4 tests

This is a short check of server-side resources used by Admin Color Schemes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0342.68 ▼9.41
Dashboard /wp-admin3.35 ▲0.0451.35 ▼4.71
Posts /wp-admin/edit.php3.40 ▲0.0450.94 ▼2.39
Add New Post /wp-admin/post-new.php5.93 ▲0.0496.98 ▼17.39
Media Library /wp-admin/upload.php3.27 ▲0.0440.73 ▲1.23

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Admin Color Schemes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.181.65 ▼0.5144.17 ▲0.12
Dashboard /wp-admin2,192 ▲125.54 ▼0.0698.23 ▼3.8745.53 ▲1.41
Posts /wp-admin/edit.php2,100 ▼32.01 ▲0.0541.29 ▲1.3535.88 ▼1.74
Add New Post /wp-admin/post-new.php1,528 ▼023.23 ▲0.01608.26 ▼96.2846.85 ▼4.95
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.01102.48 ▼9.3145.42 ▼3.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/admin-color-schemes/admin-color-schemes.php:196

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
No tags were found

admin-color-schemes/admin-color-schemes.php Passed 13 tests

The main PHP file in "Admin Color Schemes" ver. 3.0.0 adds more information about the plugin and also serves as the entry point for this plugin
30 characters long description:
Even more admin color schemes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,390 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
Sass2730491,094
PHP12143159
CSS2504884
JSON10035
JavaScript141018

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
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
Namespaces1
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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