Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/grants-for-nonprofits-widget/grantfeed.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; grants_Widget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼61.54ms] Passed 4 tests
Server-side resources used by Grants for Nonprofits Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.97 ▼35.43 |
Dashboard /wp-admin | 2.08 ▼1.26 | 7.11 ▼56.79 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 6.08 ▼49.14 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 7.14 ▼104.79 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.57 ▼32.76 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_grants-widget |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Grants for Nonprofits Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.12 | 1.77 ▲0.13 | 43.57 ▲2.61 |
Dashboard /wp-admin | 2,195 ▲15 | 5.64 ▲0.10 | 87.91 ▼5.47 | 42.77 ▼0.19 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.99 ▼0.05 | 34.93 ▼2.83 | 34.47 ▼1.19 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.11 ▼0.82 | 635.10 ▼3.61 | 46.59 ▼15.69 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▲0.01 | 98.28 ▼2.53 | 45.08 ▼1.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/grants-for-nonprofits-widget/grantfeed.php+20
Methods with the same name as their class will not be constructors in a future version of PHP; grants_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_grants-widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/grants-for-nonprofits-widget/grantfeed.php:16
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
grants-for-nonprofits-widget/grantfeed.php 92% from 13 tests
Analyzing the main PHP file in "Grants for Nonprofits Widget" version 1.1
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("grants-for-nonprofits-widget.php" instead of "grantfeed.php")
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
Success! There were no dangerous files found in this plugin37 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 0 | 33 | 37 |
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.10 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 1 | |
▷ Named functions | 1 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin