Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.65MB] [CPU: ▼17.51ms] Passed 4 tests
Analyzing server-side resources used by Related Images
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.75 ▼5.93 |
Dashboard /wp-admin | 3.37 ▲0.06 | 49.28 ▲0.73 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 50.67 ▲3.50 |
Add New Post /wp-admin/post-new.php | 3.19 ▼2.70 | 34.17 ▼67.59 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 32.83 ▲2.77 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Related Images
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 14.70 ▲0.52 | 1.77 ▼0.12 | 41.12 ▼0.81 |
Dashboard /wp-admin | 2,351 ▲166 | 6.50 ▲0.69 | 132.52 ▲29.05 | 39.65 ▲0.28 |
Posts /wp-admin/edit.php | 2,251 ▲162 | 3.30 ▲1.27 | 56.92 ▲16.62 | 33.93 ▲0.34 |
Add New Post /wp-admin/post-new.php | 6,250 ▲4,731 | 25.92 ▲2.63 | 901.55 ▲248.87 | 41.51 ▼5.93 |
Media Library /wp-admin/upload.php | 1,387 ▼4 | 4.19 ▼0.02 | 83.95 ▼17.66 | 41.30 ▼2.39 |
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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/related-images/tpl/meta-box.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: related_images in wp-content/plugins/related-images/tpl/meta-box.php on line 67
- > PHP Fatal error
Uncaught Error: Call to undefined function RI\\add_action() in wp-content/plugins/related-images/inc/class-backend.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/related-images/related-images.php:25
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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 your attention:
- Screenshots: Add an image for screenshot #1 (Box where you add and position images to a post)
- Tested up to: Invalid version format
related-images/related-images.php 85% from 13 tests
The main PHP file in "Related Images" ver. 2.0b2... adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "2.0b2...")
- Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
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
Success! There were no dangerous files found in this plugin668 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 283 | 173 | 549 |
JavaScript | 2 | 46 | 24 | 112 |
CSS | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.83 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 6 | 13.95% |
▷ Public methods | 40 | 93.02% |
▷ Protected methods | 2 | 4.65% |
▷ Private methods | 1 | 2.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 23.17KB | 7.85KB | ▼ 66.13% |