Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/vertical-related-posts/vertical-related-posts.php+59
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.77ms] Passed 4 tests
Server-side resources used by Vertical Related Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 32.27 ▼7.99 |
Dashboard /wp-admin | 3.43 ▲0.13 | 44.86 ▼0.62 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 45.53 ▲3.61 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 80.92 ▼6.09 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 36.85 ▲4.30 |
Vertical Related Posts /wp-admin/options-general.php?page=vertical-related-posts-options | 3.30 | 29.60 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
cc_vrp_activate_flag |
db_upgraded |
can_compress_scripts |
cc_vrp_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Vertical Related Posts: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲73 | 13.18 ▼1.21 | 1.50 ▼0.20 | 42.00 ▼4.22 |
Dashboard /wp-admin | 2,211 ▲26 | 4.92 ▼0.02 | 112.07 ▲5.50 | 39.26 ▲0.23 |
Posts /wp-admin/edit.php | 2,094 ▲2 | 2.03 ▲0.02 | 37.28 ▼8.57 | 33.53 ▼3.91 |
Add New Post /wp-admin/post-new.php | 6,415 ▲4,901 | 26.02 ▲8.53 | 910.88 ▲303.02 | 65.81 ▲10.05 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.22 ▲0.01 | 99.61 ▼4.50 | 42.24 ▼0.30 |
Vertical Related Posts /wp-admin/options-general.php?page=vertical-related-posts-options | 1,284 | 1.73 | 25.79 | 33.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=vertical-related-posts-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=vertical-related-posts-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/vertical-related-posts/vertical-related-posts.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
vertical-related-posts/vertical-related-posts.php Passed 13 tests
The main file in "Vertical Related Posts" v. 1.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
46 characters long description:
Wordpress plugin for displaying related posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected678 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 115 | 193 | 573 |
CSS | 2 | 7 | 3 | 95 |
JavaScript | 1 | 1 | 2 | 10 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 28 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.65% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.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
No PNG files were detected