90% high-contrast-admin

Code Review | High Contrast Admin

WordPress plugin High Contrast Admin scored90%from 54 tests.

About plugin

  • Plugin page: high-contrast-admin
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9
  • WordPress version: 6.3.1
  • First release: Dec 20, 2016
  • Latest release: Nov 9, 2017
  • Number of updates: 16
  • Update frequency: every 20.1 days
  • Top authors: miqrogroove (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,374 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by High Contrast Admin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.23 ▼1.92
Dashboard /wp-admin3.31 ▲0.0147.62 ▲0.49
Posts /wp-admin/edit.php3.36 ▲0.0150.91 ▲2.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.30 ▼5.40
Media Library /wp-admin/upload.php3.23 ▲0.0137.82 ▲0.42

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for High Contrast Admin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.74 ▼0.021.91 ▲0.0845.17 ▲0.16
Dashboard /wp-admin2,209 ▲214.83 ▼0.07101.44 ▲2.6739.88 ▲0.62
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0240.16 ▲2.9935.86 ▼1.13
Add New Post /wp-admin/post-new.php1,533 ▲1423.13 ▲0.06666.23 ▲1.3859.35 ▲8.67
Media Library /wp-admin/upload.php1,385 ▼04.23 ▲0.04111.00 ▲12.1946.91 ▼0.02

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
8 plugin tags: admin, background, high, scheme, contrast...

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

Analyzing the main PHP file in "High Contrast Admin" version 1.1.2
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("high-contrast-admin.php" instead of "high-contrast.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin409 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS25643377
PHP1103732

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected