Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/related-post-widget-side/related-post-widget-side.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; relatedpostsCPWidget has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼53.49ms] Passed 4 tests
Analyzing server-side resources used by Related Post widget side
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.43 ▼43.14 |
Dashboard /wp-admin | 2.08 ▼1.22 | 6.18 ▼41.12 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 5.56 ▼43.97 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 5.17 ▼85.73 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.62 ▼29.02 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_relatedpostscpwidget |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Related Post widget side
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▼0.20 | 1.86 ▼0.35 | 46.91 ▲1.30 |
Dashboard /wp-admin | 2,209 ▲24 | 4.93 ▼0.92 | 100.62 ▼2.50 | 40.97 ▼2.86 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.03 ▼0.02 | 38.86 ▼0.02 | 33.96 ▼2.24 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.44 ▲5.30 | 629.09 ▲10.89 | 51.01 ▼2.02 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.23 ▲0.07 | 95.99 ▼3.10 | 41.50 ▼0.94 |
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
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/related-post-widget-side/related-post-widget-side.php+15
Methods with the same name as their class will not be constructors in a future version of PHP; relatedpostsCPWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_relatedpostscpwidget
- db_upgraded
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× 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/related-post-widget-side/related-post-widget-side.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== related-post-widget-side ===
) - Screenshots: Screenshot #1 (Screenshots) image not found
related-post-widget-side/related-post-widget-side.php Passed 13 tests
The main PHP file in "Related Post widget side" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
Show Random related posts in sidebar
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 plugin54 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 9 | 54 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin