Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼3.39ms] Passed 4 tests
Analyzing server-side resources used by Comment Images Reloaded
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 47.95 ▲6.29 |
Dashboard /wp-admin | 3.52 ▲0.22 | 55.41 ▲1.13 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 52.70 ▼10.88 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 100.21 ▼5.20 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 37.82 ▲1.39 |
Comment Images Reloaded /wp-admin/options-general.php?page=comment_images_reloaded | 3.39 | 34.51 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
comment_image_reloaded_toggle_state |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Comment Images Reloaded
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲15 | 14.28 ▼0.08 | 1.85 ▼0.10 | 47.21 ▲5.00 |
Dashboard /wp-admin | 2,201 ▲27 | 5.54 ▼0.12 | 100.88 ▲7.47 | 46.85 ▲3.52 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.00 ▼0.12 | 37.00 ▼6.14 | 34.36 ▼8.42 |
Add New Post /wp-admin/post-new.php | 6,253 ▲4,725 | 26.05 ▲3.08 | 935.99 ▲279.03 | 62.03 ▲10.64 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.28 ▲0.10 | 102.26 ▼7.09 | 45.02 ▲1.17 |
Comment Images Reloaded /wp-admin/options-general.php?page=comment_images_reloaded | 948 | 1.69 | 25.12 | 30.77 |
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: 7 options
- comment_image_reloaded_toggle_state
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=comment_images_reloaded
- > Notice in wp-content/plugins/comment-images-reloaded/admin/options.php+202
Trying to access array offset on value of type bool
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
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/media.php' (include_path='.:/usr/share/php') in wp-content/plugins/comment-images-reloaded/class-comment-image-reloaded.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/comment-images-reloaded/class-comment-image-reloaded.php on line 4
- > PHP Warning
require_once(CIR_PLUGIN_PATH/class-comment-image-reloaded.php): failed to open stream: No such file or directory in wp-content/plugins/comment-images-reloaded/admin/options.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/media.php): failed to open stream: No such file or directory in wp-content/plugins/comment-images-reloaded/class-comment-image-reloaded.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'CIR_PLUGIN_PATH/class-comment-image-reloaded.php' (include_path='.:/usr/share/php') in wp-content/plugins/comment-images-reloaded/admin/options.php on line 3
- > PHP Warning
Use of undefined constant CIR_PLUGIN_PATH - assumed 'CIR_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/comment-images-reloaded/admin/options.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/comment-images-reloaded/comment-image-reloaded.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #2, #3 in comment-images-reloaded/assets to your readme.txt
comment-images-reloaded/comment-image-reloaded.php 85% from 13 tests
The primary PHP file in "Comment Images Reloaded" version 2.2.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 158 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("comment-images-reloaded.php" instead of "comment-image-reloaded.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,927 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 463 | 344 | 934 |
PO File | 6 | 323 | 391 | 829 |
JavaScript | 8 | 52 | 16 | 163 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 21.71 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 3.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.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 | 51 | |
▷ Static methods | 22 | 43.14% |
▷ Public methods | 43 | 84.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 15.69% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin