74% coeur-admin-color-scheme

Code Review | Coeur Admin Color Scheme

WordPress plugin Coeur Admin Color Scheme scored 74% from 54 tests.

About plugin

  • Plugin page: coeur-admin-color...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2014
  • Latest release: Mar 1, 2014
  • Number of updates: 28
  • Update frequency: every 0.1 days
  • Top authors: titouanc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,405 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼32.65ms] Passed 4 tests

An overview of server-side resources used by Coeur Admin Color Scheme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.34 ▼5.33
Dashboard /wp-admin3.03 ▼0.2724.45 ▼20.46
Posts /wp-admin/edit.php3.03 ▼0.3224.51 ▼20.57
Add New Post /wp-admin/post-new.php3.03 ▼2.8523.95 ▼77.70
Media Library /wp-admin/upload.php3.03 ▼0.1922.64 ▼11.85

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Coeur Admin Color Scheme
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.60 ▼1.003.87 ▲2.2938.61 ▼7.64
Dashboard /wp-admin2,208 ▲205.83 ▲0.9497.99 ▼9.0945.39 ▲4.57
Posts /wp-admin/edit.php2,106 ▲171.99 ▼0.0140.89 ▲5.2242.22 ▲8.96
Add New Post /wp-admin/post-new.php1,525 ▼1018.14 ▼4.93641.38 ▼1.3460.61 ▼0.59
Media Library /wp-admin/upload.php1,390 ▼14.32 ▲0.1497.61 ▼3.5457.34 ▲11.68

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5453
    Function get_settings is deprecated since version 2.1.0! Use get_option() instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coeur-admin-color-scheme/coeur.php:24

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 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: panel, admin, dashboard, theme

coeur-admin-color-scheme/coeur.php 92% from 13 tests

The main PHP file in "Coeur Admin Color Scheme" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("coeur-admin-color-scheme.php" instead of "coeur.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected166 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS210131
PHP1131635

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png108.62KB35.81KB▼ 67.03%
assets/screenshot-1.png104.03KB34.15KB▼ 67.17%