68% zeus-admin-theme

Code Review | Zeus WordPress Admin

WordPress plugin Zeus WordPress Admin scored68%from 54 tests.

About plugin

  • Plugin page: zeus-admin-theme
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.2.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Jun 18, 2019
  • Number of updates: 22
  • Update frequency: every 60.1 days
  • Top authors: lhertzler (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /7,371 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.74MB] [CPU: ▼37.54ms] Passed 4 tests

An overview of server-side resources used by Zeus WordPress Admin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2545.43 ▲4.79
Dashboard /wp-admin3.22 ▼0.1326.60 ▼36.15
Posts /wp-admin/edit.php3.21 ▼0.1523.92 ▼24.05
Add New Post /wp-admin/post-new.php3.21 ▼2.6826.22 ▼79.66
Media Library /wp-admin/upload.php3.21 ▼0.0223.55 ▼10.28
Welcome To Welcome Screen /wp-admin/index.php?page=welcome-screen-about3.2224.84
Hide Menu /wp-admin/options-general.php?page=hide-admin-menu3.2225.91

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 148 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Zeus WordPress Admin: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,220 ▲47414.44 ▲0.066.38 ▲4.6343.15 ▲3.65
Dashboard /wp-admin2,500 ▲3095.78 ▲0.88119.88 ▲20.6843.73 ▲4.10
Posts /wp-admin/edit.php2,398 ▲3092.77 ▲0.7552.16 ▲9.5033.53 ▼0.92
Add New Post /wp-admin/post-new.php1,562 ▲4318.81 ▼4.38604.39 ▼16.4760.06 ▲2.25
Media Library /wp-admin/upload.php1,683 ▲2924.99 ▲0.81118.24 ▲17.0245.22 ▲3.13
Welcome To Welcome Screen /wp-admin/index.php?page=welcome-screen-about1,1242.4641.7826.48
Hide Menu /wp-admin/options-general.php?page=hide-admin-menu2,2302.6142.5536.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=hide-admin-menu
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/zeus-admin-theme/inc/jarvis/src/php/models/term.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/zeus-admin-theme/inc/jarvis/src/php/models/post.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/zeus-admin-theme/inc/jarvis/src/php/models/comment.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Jarvis\\Suggestions\\Action' not found in wp-content/plugins/zeus-admin-theme/inc/jarvis/src/php/suggestions/flush-rewrite-rules.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zeus-admin-theme/zeus-admin-theme.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Jarvis\\Suggestions\\Action' not found in wp-content/plugins/zeus-admin-theme/inc/jarvis/src/php/suggestions/search.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zeus-admin-theme/inc/hide-wp-toolbar/hide-wp-toolbar.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/zeus-admin-theme/inc/jarvis/src/php/models/menu.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Jarvis\\Models\\Model' not found in wp-content/plugins/zeus-admin-theme/inc/jarvis/src/php/models/user.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Jarvis\\plugins_url() in wp-content/plugins/zeus-admin-theme/inc/jarvis/jarvis.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (30 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

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

The main PHP file in "Zeus WordPress Admin" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
A simple, clean admin theme with select features to improve your WordPress experience.

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 plugin22,758 lines of code in 124 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript592,26153412,104
JSON6006,719
Markdown737401,091
PHP203314721,051
CSS16221103851
Sass13712525
HTML2470407
Bourne Again Shell11110

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.14
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2278.57%
▷ Protected methods00.00%
▷ Private methods621.43%
Functions28
▷ Named functions2692.86%
▷ Anonymous functions27.14%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/hide-wp-toolbar/assets/banner-772x250.png38.97KB17.06KB▼ 56.22%
inc/hide-wp-toolbar/assets/screenshot-2.png33.06KB14.13KB▼ 57.26%
inc/hide-wp-toolbar/assets/screenshot-1.png39.12KB16.63KB▼ 57.48%