Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.69MB] [CPU: ▼49.59ms] Passed 4 tests
This is a short check of server-side resources used by Stack Overflow Activity Feed Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.30 ▼1.17 | 14.12 ▼28.00 |
Dashboard /wp-admin | 2.31 ▼0.99 | 11.43 ▼41.66 |
Posts /wp-admin/edit.php | 2.31 ▼1.05 | 9.45 ▼38.42 |
Add New Post /wp-admin/post-new.php | 2.31 ▼3.58 | 11.51 ▼90.29 |
Media Library /wp-admin/upload.php | 2.31 ▼0.92 | 11.08 ▼24.09 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_stackoverflowactivitywidget |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Stack Overflow Activity Feed Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.37 ▼0.28 | 1.88 ▼0.00 | 44.05 ▲2.91 |
Dashboard /wp-admin | 2,198 ▲18 | 5.66 ▼0.04 | 88.63 ▼1.32 | 40.50 ▼4.04 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.03 | 34.40 ▼2.93 | 34.54 ▲0.26 |
Add New Post /wp-admin/post-new.php | 1,531 ▼24 | 23.26 ▲4.90 | 673.99 ▲20.19 | 63.07 ▲9.84 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.18 ▼0.24 | 99.19 ▼8.44 | 48.71 ▲1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in StackOverflowActivityWidget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_stackoverflowactivitywidget
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- 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
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/feed.php' (include_path='.:/usr/share/php') in wp-content/plugins/stack-overflow-activity-feed-widget/stack-overflow-activity-feed.php on line 28
- > PHP Warning
require_once(ABSPATHWPINC/feed.php): failed to open stream: No such file or directory in wp-content/plugins/stack-overflow-activity-feed-widget/stack-overflow-activity-feed.php on line 28
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/stack-overflow-activity-feed-widget/stack-overflow-activity-feed.php on line 28
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/stack-overflow-activity-feed-widget/stack-overflow-activity-feed.php on line 28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: widget, stack overflow widget, stack overflow activity, activity feed, stack overflow feed...
stack-overflow-activity-feed-widget/stack-overflow-activity-feed.php 92% from 13 tests
The main PHP script in "Stack Overflow Activity Feed Widget" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("stack-overflow-activity-feed-widget.php" instead of "stack-overflow-activity-feed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin113 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 46 | 113 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin