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
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.48ms] Passed 4 tests
Server-side resources used by Image Display Control
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 45.80 ▼0.29 |
Dashboard /wp-admin | 3.43 ▲0.13 | 53.80 ▼1.80 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 48.77 ▼0.55 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 87.82 ▼22.90 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 40.86 ▼0.66 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 51 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Image Display Control
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲8 | 14.38 ▲0.01 | 2.33 ▼0.34 | 46.03 ▲1.72 |
Dashboard /wp-admin | 2,195 ▲15 | 5.63 ▲0.05 | 96.03 ▼3.16 | 38.55 ▼4.27 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 35.50 ▼3.12 | 34.81 ▼5.12 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.18 ▲0.10 | 683.27 ▼7.78 | 54.83 ▼1.10 |
Media Library /wp-admin/upload.php | 1,394 ▼3 | 4.16 ▼0.05 | 105.77 ▼2.90 | 46.01 ▼2.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'CSD\\Image\\Image' not found in wp-content/plugins/image-display-control/src/vendor/frameright/image-metadata-parser/src/Format/JPEG.php:12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/image-display-control/src/global-functions.php on line 25
- > PHP Fatal error
Uncaught Error: Class 'CSD\\Image\\Image' not found in wp-content/plugins/image-display-control/src/vendor/frameright/image-metadata-parser/src/Format/WebP.php:12
- > PHP Fatal error
Uncaught Error: Class 'CSD\\Image\\Image' not found in wp-content/plugins/image-display-control/src/vendor/frameright/image-metadata-parser/src/Format/PNG.php:11
- > PHP Fatal error
Uncaught Error: Class 'CSD\\Image\\Format\\WebP\\Chunk' not found in wp-content/plugins/image-display-control/src/vendor/frameright/image-metadata-parser/src/Format/WebP/VP8XChunk.php:7
- > PHP Fatal error
Uncaught Error: Class 'CSD\\Image\\Image' not found in wp-content/plugins/image-display-control/src/vendor/frameright/image-metadata-parser/src/Format/PSD.php:14
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/image.php' (include_path='.:/usr/share/php') in wp-content/plugins/image-display-control/src/global-functions.php on line 25
- > PHP Fatal error
Uncaught Error: Interface 'CSD\\Image\\ImageInterface' not found in wp-content/plugins/image-display-control/src/vendor/frameright/image-metadata-parser/src/Image.php:16
- > PHP Warning
require_once(ABSPATHwp-admin/includes/image.php): failed to open stream: No such file or directory in wp-content/plugins/image-display-control/src/global-functions.php on line 25
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
image-display-control/frameright.php 85% from 13 tests
This is the main PHP file of "Image Display Control" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("image-display-control.php" instead of "frameright.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected3,538 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 798 | 2,069 | 3,274 |
Markdown | 5 | 78 | 0 | 179 |
JSON | 1 | 0 | 0 | 80 |
JavaScript | 2 | 2 | 9 | 5 |
CSS | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.97 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 29 | |
▷ Abstract classes | 3 | 10.34% |
▷ Concrete classes | 26 | 89.66% |
▷ Final classes | 0 | 0.00% |
Methods | 274 | |
▷ Static methods | 48 | 17.52% |
▷ Public methods | 235 | 85.77% |
▷ Protected methods | 2 | 0.73% |
▷ Private methods | 37 | 13.50% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 23 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 23 | 100.00% |
▷ Public constants | 23 | 100.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