89% zephyr-modern-admin-theme

Code Review | Zephyr Admin Theme

WordPress plugin Zephyr Admin Theme scored89%from 54 tests.

About plugin

  • Plugin page: zephyr-modern-adm...
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 7, 2019
  • Latest release: Oct 30, 2022
  • Number of updates: 9
  • Update frequency: every 148.1 days
  • Top authors: dylanjkotze (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active /6,147 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.09MB] [CPU: ▼2.31ms] Passed 4 tests

Server-side resources used by Zephyr Admin Theme
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0844.32 ▲1.84
Dashboard /wp-admin3.43 ▲0.0955.19 ▼19.04
Posts /wp-admin/edit.php3.54 ▲0.1955.54 ▲10.27
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.06 ▼0.12
Media Library /wp-admin/upload.php3.33 ▲0.1045.15 ▲8.09
Zephyr Admin Theme /wp-admin/themes.php?page=zephyr_admin_theme_settings3.5137.72

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Zephyr Admin Theme
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲18215.05 ▲0.701.85 ▼0.1557.38 ▲15.64
Dashboard /wp-admin2,331 ▲1516.44 ▲0.77119.07 ▲17.2340.90 ▼1.41
Posts /wp-admin/edit.php2,267 ▲1673.60 ▲1.6658.59 ▲21.0737.54 ▲2.54
Add New Post /wp-admin/post-new.php1,554 ▲2623.41 ▲0.12665.40 ▲19.7439.48 ▼13.97
Media Library /wp-admin/upload.php1,394 ▼94.23 ▲0.0484.71 ▼19.0745.70 ▲0.16
Zephyr Admin Theme /wp-admin/themes.php?page=zephyr_admin_theme_settings2,0874.7587.9824.64

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed: You can take inspiration from this readme.txt

zephyr-modern-admin-theme/zephyr-admin-theme.php 77% from 13 tests

This is the main PHP file of "Zephyr Admin Theme" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("zephyr-modern-admin-theme.php" instead of "zephyr-admin-theme.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,086 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
CSS427481,327
PHP311036649
JavaScript12311110

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin