Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.56ms] Passed 4 tests
A check of server-side resources used by Grey Mode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 28.16 ▼14.65 |
Dashboard /wp-admin | 3.37 ▲0.06 | 51.97 ▼1.53 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.32 ▲1.04 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 83.42 ▼8.51 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.20 ▼1.55 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Grey Mode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,955 ▲220 | 13.92 ▼0.76 | 9.79 ▲8.07 | 39.77 ▼0.56 |
Dashboard /wp-admin | 2,225 ▲37 | 5.90 ▲1.01 | 100.17 ▼10.89 | 37.73 ▼4.64 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.00 ▲0.02 | 35.78 ▲2.21 | 34.43 ▲3.02 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 17.40 ▼0.14 | 683.88 ▼21.14 | 56.30 ▼11.51 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.20 ▼0.07 | 94.62 ▼7.79 | 40.70 ▼4.95 |
Uninstaller [IO: ▲0.02MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin has failed uninstalling correctly, leaving 10 files (0.02MB) in the plugin directory
- (new file) public/greymode-public.js
- (new file) readme.txt
- (new file) public/external/mourn.js/css/mourn.css
- (new file) private/greymode-admin.php
- (new file) greymode.php
- (new file) public/external/mourn.js/js/mourn.js
- (new file) configurations/environment.php
- (new file) uninstall.php
- (new file) private/greymode-admin.js
- (new file) public/greymode-public.php
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Hiro_Greymode_Settings' not found in wp-content/plugins/greymode/private/greymode-admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'Hiro_Greymode_Settings' not found in wp-content/plugins/greymode/public/greymode-public.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid URI: ""
greymode/greymode.php Passed 13 tests
The principal PHP file in "Grey Mode" v. 2.0.0 is loaded by WordPress automatically on each request
137 characters long description:
Plugin that change your website to grey scale, If user would like to change to normal color? easy! we provide toggle button to switch it!
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
There were no executable files found in this plugin391 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 28 | 10 | 250 |
JavaScript | 3 | 9 | 5 | 140 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 16 | 100.00% |
▷ Public methods | 11 | 68.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 31.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.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 files were detected