Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.70ms] Passed 4 tests
Analyzing server-side resources used by ProGrids Widget Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.96 ▼0.34 |
Dashboard /wp-admin | 3.32 ▲0.02 | 42.18 ▼4.81 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 43.87 ▼4.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.91 ▼17.34 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.76 ▲7.21 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
proGrids_version |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
proGrids_siteurl |
Browser metrics Passed 4 tests
An overview of browser requirements for ProGrids Widget Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 14.27 ▼0.08 | 1.79 ▲0.09 | 39.49 ▼1.19 |
Dashboard /wp-admin | 2,212 ▲32 | 5.64 ▼0.07 | 82.50 ▼2.67 | 70.19 ▲24.39 |
Posts /wp-admin/edit.php | 2,117 ▲17 | 1.98 ▲0.01 | 39.85 ▲3.22 | 33.89 ▲0.11 |
Add New Post /wp-admin/post-new.php | 1,694 ▲166 | 22.05 ▼1.05 | 747.14 ▲70.40 | 57.07 ▼7.35 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.21 ▲0.07 | 96.08 ▼13.85 | 66.24 ▲19.79 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/progrids-widgets/views/installationCode.php
- > /wp-content/plugins/progrids-widgets/views/upgradeCode.php
- 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/progrids-widgets/views/main.php:13
- > PHP Warning
Use of undefined constant PROGRIDS_WIDGETS_HOST - assumed 'PROGRIDS_WIDGETS_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/progrids-widgets/views/installationCode.php on line 20
- > PHP Warning
Use of undefined constant PROGRIDS_BASE_URL - assumed 'PROGRIDS_BASE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/progrids-widgets/views/main.php on line 7
- > PHP Notice
Undefined variable: widgetId in wp-content/plugins/progrids-widgets/views/upgradeCode.php on line 11
- > PHP Warning
Use of undefined constant PROGRIDS_PLUGIN_URL - assumed 'PROGRIDS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/progrids-widgets/views/main.php on line 3
- > PHP Warning
Use of undefined constant PROGRIDS_WIDGETS_HOST - assumed 'PROGRIDS_WIDGETS_HOST' (this will throw an Error in a future version of PHP) in wp-content/plugins/progrids-widgets/views/upgradeCode.php on line 19
- > PHP Warning
Use of undefined constant PROGRIDS_BASE_URL - assumed 'PROGRIDS_BASE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/progrids-widgets/views/main.php on line 3
- > PHP Notice
Undefined variable: widgetId in wp-content/plugins/progrids-widgets/views/upgradeCode.php on line 7
- > PHP Notice
Undefined variable: widgetId in wp-content/plugins/progrids-widgets/views/installationCode.php on line 11
- > PHP Notice
Undefined variable: widgetId in wp-content/plugins/progrids-widgets/views/upgradeCode.php on line 21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
progrids-widgets/functions.php 92% from 13 tests
"ProGrids Widget Plugin" version 3.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("progrids-widgets.php" instead of "functions.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 plugin332 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 56 | 99 | 268 |
CSS | 1 | 8 | 0 | 64 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 4 | 30.77% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 14 | 93.33% |
▷ Class constants | 1 | 6.67% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.71MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 226.35KB | 76.96KB | ▼ 66.00% |
assets/screenshot-1.png | 67.31KB | 23.80KB | ▼ 64.65% |
assets/screenshot-3.png | 398.88KB | 120.38KB | ▼ 69.82% |
images/proGridsFav.png | 18.30KB | 0.72KB | ▼ 96.09% |
images/proGridsHeader.png | 11.92KB | 5.68KB | ▼ 52.32% |