90% fix-admin-contrast

Code Review | Fix Admin Contrast

WordPress plugin Fix Admin Contrast scored90%from 54 tests.

About plugin

  • Plugin page: fix-admin-contrast
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.9
  • WordPress version: 6.3.1
  • First release: Sep 9, 2012
  • Latest release: Nov 9, 2017
  • Number of updates: 68
  • Update frequency: every 27.8 days
  • Top authors: miqrogroove (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /4,255 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼6.23ms] Passed 4 tests

This is a short check of server-side resources used by Fix Admin Contrast
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0143.85 ▼0.11
Dashboard /wp-admin3.31 ▼0.0448.39 ▼18.60
Posts /wp-admin/edit.php3.36 ▲0.0046.34 ▼2.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.70 ▼4.02
Media Library /wp-admin/upload.php3.23 ▲0.0040.27 ▲4.00

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Fix Admin Contrast
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲6014.34 ▲0.081.83 ▼0.1745.60 ▼6.51
Dashboard /wp-admin2,201 ▲275.66 ▲0.0887.78 ▼12.6944.01 ▲1.00
Posts /wp-admin/edit.php2,106 ▲61.95 ▼0.0235.21 ▼1.5332.02 ▲1.75
Add New Post /wp-admin/post-new.php1,534 ▲622.95 ▼0.27681.69 ▼25.5962.99 ▲6.65
Media Library /wp-admin/upload.php1,403 ▲64.24 ▲0.04104.98 ▲4.4844.28 ▲0.61

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: input, fields, contrast, field, theme...

fix-admin-contrast/admin-contrast.php 92% from 13 tests

"Fix Admin Contrast" version 1.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fix-admin-contrast.php" instead of "admin-contrast.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected288 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12094288

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.63
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%
Functions10
▷ Named functions10100.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
No PNG images were found in this plugin