94% 1click-grey-mode

Code Review | = 1Click Grey Mode

WordPress plugin = 1Click Grey Mode scored 94% from 54 tests.

About plugin

  • Plugin page: 1click-grey-mode
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Oct 27, 2019
  • Latest release: Oct 28, 2019
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: eng.hanan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 392 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼149.51ms] Passed 4 tests

A check of server-side resources used by = 1Click Grey Mode
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0123.95 ▲0.08
Dashboard /wp-admin3.07 ▲0.0037.04 ▼1.87
Posts /wp-admin/edit.php3.12 ▲0.0132.62 ▼1.32
Add New Post /wp-admin/post-new.php5.43 ▼0.0168.82 ▼590.62
Media Library /wp-admin/upload.php3.01 ▲0.0121.76 ▼4.23

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for = 1Click Grey Mode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,688 ▲6215.95 ▲0.285.98 ▲0.7682.00 ▲5.33
Dashboard /wp-admin2,947 ▲516.11 ▼0.11117.66 ▼13.26172.20 ▼7.16
Posts /wp-admin/edit.php2,761 ▲213.24 ▲0.0064.19 ▼2.79133.91 ▼10.10
Add New Post /wp-admin/post-new.php3,748 ▲718.04 ▼0.90444.67 ▼38.34166.99 ▲0.73
Media Library /wp-admin/upload.php1,772 ▲205.50 ▼0.02140.59 ▼27.23193.10 ▼0.15

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 75% from 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 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 fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/1click-grey-mode/1click-grey-mode.php
    • > /wp-content/plugins/1click-grey-mode/includes/cgm-functions.php

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

1click-grey-mode/1click-grey-mode.php Passed 13 tests

The principal PHP file in "= 1Click Grey Mode" v. 1.0 is loaded by WordPress automatically on each request
20 characters long description:
Plugin for Grey Mode

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin100 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review 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.21
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected