Benchmarks
Plugin footprint 83% 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: ▲0.76ms] Passed 4 tests
A check of server-side resources used by HeroPress Recent Essay Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.91 ▲1.43 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.23 ▲1.69 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.90 ▼0.50 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 99.70 ▲9.41 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.33 ▲0.44 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_heropress-recent-essays-widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
HeroPress Recent Essay Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.33 ▼1.05 | 1.78 ▼0.31 | 44.60 ▼3.93 |
Dashboard /wp-admin | 2,209 ▲54 | 5.85 ▲0.16 | 104.05 ▲2.29 | 44.43 ▲0.75 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.97 ▼0.06 | 39.17 ▲0.65 | 36.05 ▼1.57 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 23.12 ▼0.23 | 673.33 ▼19.83 | 69.40 ▲17.07 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.05 | 94.76 ▼13.79 | 40.73 ▼7.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_heropress-recent-essays-widget
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/heropress-recent-essays-widget/heropress-recent-essays-widget.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: A description for screenshot #2 is missing in heropress-recent-essays-widget/assets to your readme.txt
heropress-recent-essays-widget/heropress-recent-essays-widget.php Passed 13 tests
"HeroPress Recent Essay Widget" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Creates a widget which shows the recent essays from HeroPress.com.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin147 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 68 | 126 | 147 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 33.33% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin