84% wp-clean-admin-theme

Code Review | Clean WP Admin Theme - Simple design

WordPress plugin Clean WP Admin Theme - Simple design scored84%from 54 tests.

About plugin

  • Plugin page: wp-clean-admin-theme
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.2
  • WordPress version: 6.3.1
  • First release: Feb 7, 2018
  • Latest release: Sep 9, 2019
  • Number of updates: 7
  • Update frequency: every 82.7 days
  • Top authors: JoseVega (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /5,667 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Clean WP Admin Theme - Simple design
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.70 ▼1.32
Dashboard /wp-admin3.31 ▲0.0148.62 ▼2.77
Posts /wp-admin/edit.php3.36 ▲0.0157.41 ▲9.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.57 ▼19.43
Media Library /wp-admin/upload.php3.24 ▲0.0138.86 ▼1.17

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Clean WP Admin Theme - Simple design: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4313.86 ▼0.701.69 ▼0.3034.32 ▼9.11
Dashboard /wp-admin2,202 ▲145.96 ▲0.09103.15 ▼1.3044.84 ▲0.02
Posts /wp-admin/edit.php2,090 ▲12.30 ▲0.2541.39 ▼0.8332.16 ▼4.26
Add New Post /wp-admin/post-new.php1,531 ▲1723.18 ▲5.72677.22 ▼2.1536.98 ▼20.49
Media Library /wp-admin/upload.php1,390 ▲24.29 ▲0.08111.13 ▲6.8744.39 ▼4.00

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 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 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-clean-admin-theme/index.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
5 plugin tags: admin theme, flat admin theme, white label, wordpress admin theme, modern admin theme

wp-clean-admin-theme/index.php 92% from 13 tests

"Clean WP Admin Theme - Simple design" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-clean-admin-theme.php" instead of "index.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
Everything looks great! No dangerous files found in this plugin146 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1283679
CSS110067

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin