Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼3.86ms] Passed 4 tests
Analyzing server-side resources used by Infinite Related Next Post Manager for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 35.24 ▼6.37 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.37 ▲0.97 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 44.91 ▼6.58 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.29 ▼2.65 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.50 ▲0.16 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
_winpm_next_post_option |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Infinite Related Next Post Manager for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲212 | 15.18 ▲0.89 | 7.14 ▲5.34 | 41.81 ▼9.02 |
Dashboard /wp-admin | 2,262 ▲74 | 6.24 ▲1.17 | 125.31 ▲18.92 | 82.58 ▲33.98 |
Posts /wp-admin/edit.php | 2,147 ▲58 | 3.06 ▲1.00 | 40.38 ▲1.02 | 53.33 ▲17.56 |
Add New Post /wp-admin/post-new.php | 6,617 ▲5,084 | 21.40 ▼1.73 | 902.43 ▲219.51 | 62.38 ▲11.65 |
Media Library /wp-admin/upload.php | 1,500 ▲109 | 5.46 ▲1.28 | 116.71 ▲14.88 | 44.31 ▼2.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- widget_theysaidso_widget
- _winpm_next_post_option
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/infinite-related-next-post-manager/admin/grid-setting.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/infinite-related-next-post-manager/admin/setting.php:19
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/infinite-related-next-post-manager/admin/grid-setting.php:197
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: related post, infinite scroll, post manager, sidebar, next post
infinite-related-next-post-manager/wp-next-post-manager.php 85% from 13 tests
"Infinite Related Next Post Manager for WordPress" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("infinite-related-next-post-manager.php" instead of "wp-next-post-manager.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected3,195 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 88 | 71 | 1,519 |
CSS | 3 | 34 | 13 | 1,353 |
SVG | 1 | 0 | 0 | 212 |
JavaScript | 5 | 15 | 6 | 111 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 14 | 82.35% |
▷ Protected methods | 3 | 17.65% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/icon.png | 3.37KB | 0.78KB | ▼ 76.88% |
assets/image/line.png | 0.08KB | 0.10KB | 0.00% |
assets/image/round.png | 4.19KB | 1.43KB | ▼ 65.87% |