84% wpredesigned-beautiful-custom-admin-theme

Code Review | WpRedesigned - Beautiful Custom Admin Theme

WordPress plugin WpRedesigned - Beautiful Custom Admin Theme scored84%from 54 tests.

About plugin

  • Plugin page: wpredesigned-beau...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 7, 2019
  • Latest release: Jun 7, 2019
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: wpmagg (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active /5,956 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by WpRedesigned - Beautiful Custom Admin Theme
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.08 ▲4.03
Dashboard /wp-admin3.31 ▼0.0444.57 ▼15.10
Posts /wp-admin/edit.php3.36 ▲0.0047.68 ▲1.68
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.68 ▼13.78
Media Library /wp-admin/upload.php3.24 ▲0.0039.28 ▲7.53

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for WpRedesigned - Beautiful Custom Admin Theme
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲4514.08 ▼0.551.80 ▲0.1834.57 ▼4.82
Dashboard /wp-admin2,158 ▼225.64 ▲0.0291.12 ▲6.5748.45 ▲7.64
Posts /wp-admin/edit.php2,078 ▼251.99 ▼0.0346.00 ▲4.7449.33 ▲16.94
Add New Post /wp-admin/post-new.php1,528 ▲223.74 ▲0.23672.23 ▼5.9857.35 ▲7.60
Media Library /wp-admin/upload.php1,366 ▼254.20 ▼0.01100.71 ▼24.6841.45 ▼0.46

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wpredesigned-beautiful-custom-admin-theme/wpredesigned_beautiful_custom_admin_theme.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: admin, custom admin, admin theme, cstom dashboard

wpredesigned-beautiful-custom-admin-theme/wpredesigned_beautiful_custom_admin_theme.php 92% from 13 tests

The principal PHP file in "WpRedesigned - Beautiful Custom Admin Theme" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpredesigned-beautiful-custom-admin-theme.php" instead of "wpredesigned_beautiful_custom_admin_theme.php")

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 plugin3,585 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS34314533,576
PHP14129

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin