Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wpr-general-posts-widget/wpr-general-posts.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; GardenGeneralPosts has a deprecated constructor
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.85ms] Passed 4 tests
A check of server-side resources used by WPR General Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.50 ▼2.90 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.27 ▼7.67 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.95 ▲2.34 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.72 ▼10.75 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.12 ▼2.08 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_gardengeneralposts |
Browser metrics Passed 4 tests
WPR General Posts: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.02 | 1.49 ▼0.52 | 39.02 ▼3.39 |
Dashboard /wp-admin | 2,192 ▲12 | 5.57 ▼0.07 | 94.68 ▲0.13 | 42.77 ▲1.85 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.04 ▲0.04 | 39.02 ▲1.20 | 37.37 ▲0.00 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.29 ▼4.86 | 612.77 ▼35.36 | 64.90 ▲12.75 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.07 | 106.60 ▲7.32 | 40.14 ▼7.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_gardengeneralposts
- widget_recent-posts
- widget_theysaidso_widget
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpr-general-posts-widget/wpr-general-posts.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpr-general-posts-widget/1.3.0/wpr-general-posts.php:11
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wpr-general-posts-widget ===
) - Tags: There are too many tags (12 tag instead of maximum 10)
wpr-general-posts-widget/wpr-general-posts.php 85% from 13 tests
The principal PHP file in "WPR General Posts" v. 1.3.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 216 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wpr-general-posts-widget.php" instead of "wpr-general-posts.php")
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
Good job! No executable or dangerous file extensions detected230 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 44 | 31 | 230 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 36.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 9.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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 files were detected