88% w2o-football-fans-admin-color-schemes

Code Review | W2O Football Fans Admin Color Schemes

WordPress plugin W2O Football Fans Admin Color Schemes scored 88% from 54 tests.

About plugin

  • Plugin page: w2o-football-fans...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.7
  • WordPress version: 5.8.1
  • First release: Feb 10, 2016
  • Latest release: Jul 31, 2018
  • Number of updates: 29
  • Update frequency: every 31.2 days
  • Top authors: shishir.adhikari (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 1,499 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼141.17ms] Passed 4 tests

This is a short check of server-side resources used by W2O Football Fans Admin Color Schemes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1941.02 ▲20.00
Dashboard /wp-admin3.16 ▲0.1050.92 ▲7.48
Posts /wp-admin/edit.php3.21 ▲0.1049.69 ▲2.22
Add New Post /wp-admin/post-new.php5.51 ▲0.0796.19 ▼575.83
Media Library /wp-admin/upload.php3.09 ▲0.0934.63 ▲1.46

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 119 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for W2O Football Fans Admin Color Schemes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,727 ▲13116.11 ▲0.5311.75 ▲2.9649.69 ▼3.85
Dashboard /wp-admin2,984 ▲505.89 ▼0.05135.89 ▼11.02138.32 ▲13.89
Posts /wp-admin/edit.php2,778 ▲392.82 ▲0.0065.27 ▼4.3894.50 ▲1.98
Add New Post /wp-admin/post-new.php1,712 ▲2918.89 ▲0.08387.38 ▲0.37114.30 ▼2.67
Media Library /wp-admin/upload.php1,775 ▼325.01 ▼0.01137.68 ▼16.45147.64 ▲17.62

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

Smoke tests 50% 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 0% 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
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/w2o-football-fans-admin-color-schemes/core/w2o_fbfn_acs.css.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/w2o-football-fans-admin-color-schemes/core/class-acs.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (Club wise example: FC Barcelona color scheme in action), #2 (Country wise example: Argentina color scheme in action)
You can take inspiration from this readme.txt

w2o-football-fans-admin-color-schemes/w2o-football-fans-admin-color-schemes.php 92% from 13 tests

The primary PHP file in "W2O Football Fans Admin Color Schemes" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 285 characters long)

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
Success! There were no dangerous files found in this plugin12,826 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
CSS282,0883,15711,740
Sass301985721
PHP43551365

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
30 PNG files occupy 1.00MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png77.80KB31.51KB▼ 59.50%
core/colors/club/liverpool/logo.png74.14KB21.76KB▼ 70.65%
core/colors/club/bayernmunich/logo.png46.53KB17.11KB▼ 63.23%
core/colors/country/belgium/logo.png56.38KB16.11KB▼ 71.44%
core/colors/country/france/logo.png36.26KB10.10KB▼ 72.14%