Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼5.23ms] Passed 4 tests
This is a short check of server-side resources used by tinyRelated
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 42.64 ▲1.40 |
Dashboard /wp-admin | 3.44 ▲0.13 | 51.27 ▼5.77 |
Posts /wp-admin/edit.php | 3.56 ▲0.19 | 48.96 ▼2.59 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 91.79 ▼13.96 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 37.85 ▲3.78 |
tinyRelated /wp-admin/options-general.php?page=tinyrelated/includes/options.php | 3.33 | 34.42 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
tinyrelated_options |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_tinyrelated_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for tinyRelated
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.34 ▲0.07 | 1.48 ▼0.30 | 41.93 ▲0.13 |
Dashboard /wp-admin | 2,199 ▲19 | 5.63 ▼0.03 | 91.38 ▼2.72 | 40.06 ▼1.53 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.00 | 35.12 ▼1.02 | 33.64 ▼4.80 |
Add New Post /wp-admin/post-new.php | 6,450 ▲4,924 | 25.82 ▲2.44 | 922.55 ▲227.84 | 54.84 ▲2.28 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.19 ▼0.02 | 100.61 ▼7.23 | 44.00 ▼1.19 |
tinyRelated /wp-admin/options-general.php?page=tinyrelated/includes/options.php | 841 | 2.00 | 23.84 | 25.71 |
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
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_tinyrelated_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× 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/tinyrelated/includes/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/tinyrelated/tinyrelated.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: related posts, widget, related, shortcode
tinyrelated/tinyrelated.php Passed 13 tests
The main PHP script in "tinyRelated" version 1.0.1 is automatically included on every request by WordPress
39 characters long description:
A tiny and simple related posts plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin611 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 46 | 77 | 549 |
PO File | 1 | 21 | 30 | 62 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 31.67 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 32 | |
▷ Static methods | 28 | 87.50% |
▷ Public methods | 30 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 6.25% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected