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.08MB] [CPU: ▼7.42ms] Passed 4 tests
Analyzing server-side resources used by Really Simple Related Posts Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 42.84 ▲0.51 |
Dashboard /wp-admin | 3.39 ▲0.04 | 45.78 ▼19.13 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 49.07 ▼0.07 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 80.21 ▼11.00 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.05 ▲4.44 |
RSRPP Settings /wp-admin/options-general.php?page=rsrpp | 3.25 | 29.59 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Really Simple Related Posts Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲145 | 13.61 ▼0.77 | 5.48 ▲3.54 | 43.09 ▼1.12 |
Dashboard /wp-admin | 2,214 ▲29 | 4.83 ▼0.07 | 110.25 ▼3.43 | 39.78 ▼8.37 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.05 | 40.48 ▲4.53 | 34.57 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 17.61 ▼5.41 | 663.34 ▼5.33 | 48.73 ▲0.16 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.20 ▲0.04 | 103.53 ▲4.12 | 43.66 ▼0.45 |
RSRPP Settings /wp-admin/options-general.php?page=rsrpp | 828 | 2.06 | 25.59 | 33.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=rsrpp
- > Warning in wp-content/plugins/rsrpp/admin/class-rsrpp-admin.php+83
Illegal string offset 'text_title'
- > GET request to /wp-admin/options-general.php?page=rsrpp
- > Warning in wp-content/plugins/rsrpp/admin/class-rsrpp-admin.php+88
Illegal string offset 'number_numerofposts'
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rsrpp
- > Notice in wp-content/plugins/rsrpp/admin/class-rsrpp-admin.php+97
Trying to access array offset on value of type bool
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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/rsrpp/public/partials/rsrpp-public-display.php
- > /wp-content/plugins/rsrpp/admin/partials/rsrpp-admin-display.php
- > /wp-content/plugins/rsrpp/templates/rsrpp-template.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/rsrpp/templates/rsrpp-template.php on line 4
- > PHP Notice
Undefined variable: related_posts in wp-content/plugins/rsrpp/templates/rsrpp-template.php on line 4
- > PHP Notice
Undefined variable: related_post_title in wp-content/plugins/rsrpp/templates/rsrpp-template.php on line 2
- > PHP Warning
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 Passed 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
3 plugin tags: related, template, posts
rsrpp/rsrpp.php Passed 13 tests
The main file in "Really Simple Related Posts Plugin" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
Simple plugin to display related posts with shortcodes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin389 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 134 | 547 | 313 |
PO File | 1 | 13 | 15 | 45 |
CSS | 2 | 0 | 8 | 25 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 2 | 5.56% |
▷ Public methods | 31 | 86.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.89% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There are no PNG files in this plugin