84% wp-admin-classic-colors

Code Review | WP Admin Classic Colors

WordPress plugin WP Admin Classic Colors scored84%from 54 tests.

About plugin

  • Plugin page: wp-admin-classic-...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Jul 9, 2017
  • Number of updates: 14
  • Update frequency: every 91.4 days
  • Top authors: WebshopLogic (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20+ active /2,685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by WP Admin Classic Colors
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.35 ▼11.69
Dashboard /wp-admin3.31 ▼0.0345.96 ▼14.76
Posts /wp-admin/edit.php3.37 ▲0.0044.46 ▼2.87
Add New Post /wp-admin/post-new.php5.90 ▲0.0085.49 ▼6.28
Media Library /wp-admin/upload.php3.24 ▲0.0035.09 ▲2.06

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

WP Admin Classic Colors: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.73 ▲0.351.86 ▲0.0341.35 ▼6.57
Dashboard /wp-admin2,206 ▲155.83 ▲0.91103.42 ▼6.8341.01 ▼6.05
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0233.65 ▼6.5933.15 ▼0.95
Add New Post /wp-admin/post-new.php1,533 ▲1423.33 ▲0.31667.53 ▼25.3256.14 ▼9.42
Media Library /wp-admin/upload.php1,388 ▲64.21 ▼0.0397.61 ▲0.2941.21 ▼3.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-admin-classic-colors/wp-admin-classic-colors.php:28

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: flat view, color scheme, wordpress 37, wordpress 38, classical view...

wp-admin-classic-colors/wp-admin-classic-colors.php 85% from 13 tests

The main file in "WP Admin Classic Colors" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 284 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 review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin575 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS614861447
PO File2162290
Sass16027
PHP161411

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected