Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼6.39ms] Passed 4 tests
A check of server-side resources used by Relative Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 25.96 ▼15.58 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.63 ▼2.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.09 ▲0.51 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.46 ▼8.31 |
Media Library /wp-admin/upload.php | 3.25 ▲0.01 | 35.59 ▲4.30 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_pa_relative |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Relative Posts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 14.74 ▲0.14 | 1.76 ▼0.12 | 45.05 ▲0.39 |
Dashboard /wp-admin | 2,206 ▲17 | 5.86 ▲0.01 | 101.72 ▼9.52 | 38.15 ▼4.93 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.00 | 35.44 ▲0.18 | 30.96 ▼4.42 |
Add New Post /wp-admin/post-new.php | 1,542 ▲8 | 18.19 ▼4.75 | 605.85 ▼59.66 | 57.48 ▲6.15 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.23 ▼0.00 | 95.66 ▼1.91 | 42.84 ▲0.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_pa_relative
- can_compress_scripts
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
Good news, no errors were detected
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
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/relative-posts/templates/posts-with-thumbnails.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/relative-posts/relative.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/relative-posts/templates/form.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/relative-posts/templates/posts-without-thumbnails.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin Panel), #2 (Post Page), #3 (Post Page With Thumbnail Images)
- Donate link: Invalid url: ""
relative-posts/relative.php 92% from 13 tests
The main PHP script in "Relative Posts" version 1.3.1 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("relative-posts.php" instead of "relative.php")
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
Everything looks great! No dangerous files found in this plugin185 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 29 | 16 | 173 |
CSS | 1 | 2 | 0 | 12 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin