84% slate-admin-theme

Code Review | Slate Admin Theme

WordPress plugin Slate Admin Theme scored84%from 54 tests.

About plugin

  • Plugin page: slate-admin-theme
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Sep 12, 2014
  • Latest release: Jan 31, 2022
  • Number of updates: 36
  • Update frequency: every 75.0 days
  • Top authors: ryansommers (100%)

Code review

54 tests

User reviews

44 reviews

Install metrics

8,000+ active /131,130 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼5.64MB] [CPU: ▼1,151,238.01ms] Passed 4 tests

This is a short check of server-side resources used by Slate Admin Theme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▼22.7753.97 ▼4,604,930.25
Dashboard /wp-admin3.41 ▲0.0253.72 ▼17.46
Posts /wp-admin/edit.php3.54 ▲0.1451.18 ▲0.09
Add New Post /wp-admin/post-new.php5.98 ▲0.0591.15 ▼4.42
Media Library /wp-admin/upload.php3.48 ▲0.2049.66 ▲12.09

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Slate Admin Theme
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲10814.23 ▲0.041.83 ▼0.1929.64 ▼9.14
Dashboard /wp-admin2,263 ▲895.63 ▲0.0596.38 ▲3.7846.74 ▲6.65
Posts /wp-admin/edit.php2,175 ▲782.04 ▲0.0535.67 ▼1.3732.88 ▼5.21
Add New Post /wp-admin/post-new.php1,694 ▲16622.06 ▼0.99693.63 ▼12.4440.10 ▼16.49
Media Library /wp-admin/upload.php1,460 ▲664.22 ▲0.0198.11 ▲0.6340.27 ▼4.28

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× 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/slate-admin-theme/slate-admin-theme.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function slate_get_user_admin_color() in wp-content/plugins/slate-admin-theme/css/dynamic.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Tags: Too many tags (20 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

slate-admin-theme/slate-admin-theme.php Passed 13 tests

"Slate Admin Theme" version 1.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
41 characters long description:
A clean, simplified WordPress Admin theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,811 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
Sass193361,705
JavaScript1131956
PHP27946
CSS2004

PHP code Passed 2 tests

A short review 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.10
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin