Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.76ms] Passed 4 tests
A check of server-side resources used by Custom Global Variables
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 36.99 ▼5.46 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.53 ▼2.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.64 ▲2.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.84 ▼5.20 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.76 ▲1.62 |
Custom Global Variables /wp-admin/options-general.php?page=custom-global-variables | 3.20 | 33.13 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- Illegal file modification detected: 1 file (0.00KB) outside of "wp-content/plugins/custom-global-variables/" and "wp-content/uploads/"
- (new file) wp-content/custom-global-variables/01520bfd9fbe4a0dfcca84778e405e9a.json
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Global Variables
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 14.48 ▲0.07 | 1.98 ▼0.01 | 42.31 ▼6.49 |
Dashboard /wp-admin | 2,207 ▲16 | 5.78 ▲0.91 | 101.49 ▼3.00 | 39.78 ▼3.28 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 39.47 ▲1.04 | 35.20 ▲0.50 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 18.10 ▲0.54 | 649.48 ▲52.69 | 55.29 ▼18.26 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.02 | 96.04 ▼3.67 | 44.16 ▼0.58 |
Custom Global Variables /wp-admin/options-general.php?page=custom-global-variables | 827 | 2.06 | 27.78 | 38.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-global-variables/custom-global-variables.php on line 19
- > PHP Warning
Use of undefined constant AUTH_KEY - assumed 'AUTH_KEY' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-global-variables/custom-global-variables.php on line 19
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_mkdir_p() in wp-content/plugins/custom-global-variables/custom-global-variables.php:39
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
custom-global-variables/custom-global-variables.php 92% from 13 tests
The main file in "Custom Global Variables" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin199 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 80 | 19 | 133 |
Sass | 1 | 19 | 0 | 59 |
JavaScript | 1 | 3 | 1 | 6 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
delete.png | 2.01KB | 0.79KB | ▼ 60.53% |