84% baw-better-admin-color-themes

Code Review | BAW Better Admin Color Themes

WordPress plugin BAW Better Admin Color Themes scored84%from 54 tests.

About plugin

  • Plugin page: baw-better-admin-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Mar 24, 2012
  • Latest release: Sep 27, 2012
  • Number of updates: 5
  • Update frequency: every 37.8 days
  • Top authors: juliobox (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

20+ active /4,610 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.88ms] Passed 4 tests

Analyzing server-side resources used by BAW Better Admin Color Themes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.31 ▼5.69
Dashboard /wp-admin3.36 ▲0.0550.62 ▼1.63
Posts /wp-admin/edit.php3.41 ▲0.0554.92 ▲0.59
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.53 ▼16.80
Media Library /wp-admin/upload.php3.28 ▲0.0538.81 ▲0.91

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

BAW Better Admin Color Themes: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.68 ▲0.431.73 ▼0.0545.43 ▼0.89
Dashboard /wp-admin2,198 ▲185.57 ▼0.0492.26 ▲2.9340.03 ▼1.61
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0734.99 ▼1.9334.82 ▼5.16
Add New Post /wp-admin/post-new.php1,526 ▼223.26 ▼0.02658.74 ▼29.6076.36 ▲23.42
Media Library /wp-admin/upload.php1,400 ▲34.20 ▲0.1097.55 ▼12.3646.72 ▲0.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • 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)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/baw-better-admin-color-themes/bawbact.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes: The official readme.txt might help

baw-better-admin-color-themes/bawbact.php 92% from 13 tests

"BAW Better Admin Color Themes" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("baw-better-admin-color-themes.php" instead of "bawbact.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected6,782 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS81,682136,630
PHP11312152

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.28
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
14 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/list-tango2.png0.68KB0.72KB0.00%
css/images/red-css-button_a.png0.23KB0.23KB0.00%
css/images/icons32-tango.png15.42KB6.42KB▼ 58.36%
css/images/red-css-icon32.png13.32KB7.22KB▼ 45.76%
css/images/list-silk.png0.68KB0.71KB0.00%