84% super-thorough-admin-color-scheme

Code Review | Super Thorough Admin Color Scheme

WordPress plugin Super Thorough Admin Color Scheme scored84%from 54 tests.

About plugin

  • Plugin page: super-thorough-ad...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.6.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2016
  • Latest release: Nov 20, 2016
  • Number of updates: 22
  • Update frequency: every 14.6 days
  • Top authors: marktimemedia (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

60+ active /3,255 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Super Thorough Admin Color Scheme
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0136.64 ▼4.34
Dashboard /wp-admin3.35 ▲0.0145.81 ▼4.05
Posts /wp-admin/edit.php3.40 ▲0.0150.62 ▲0.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0184.41 ▼29.53
Media Library /wp-admin/upload.php3.27 ▲0.0136.16 ▼3.35

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Super Thorough Admin Color Scheme
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.091.71 ▲0.0943.47 ▲2.14
Dashboard /wp-admin2,206 ▲184.88 ▼1.02107.28 ▲1.7240.68 ▼1.18
Posts /wp-admin/edit.php2,095 ▲61.99 ▲0.0138.59 ▼1.1636.35 ▲2.16
Add New Post /wp-admin/post-new.php1,542 ▲518.39 ▼0.10616.17 ▼55.7854.38 ▲2.17
Media Library /wp-admin/upload.php1,388 ▼04.29 ▼0.0095.29 ▼12.9843.02 ▼5.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • 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 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
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/super-thorough-admin-color-scheme/st-admin-color-scheme.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: theme, custom, admin, dashboard, pink...

super-thorough-admin-color-scheme/st-admin-color-scheme.php 92% from 13 tests

This is the main PHP file of "Super Thorough Admin Color Scheme" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("super-thorough-admin-color-scheme.php" instead of "st-admin-color-scheme.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,430 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
Sass6455711,435
CSS3179125963
PHP1232732

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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