Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼5.79ms] Passed 4 tests
Analyzing server-side resources used by SpeedSize Image & Video AI-Optimizer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 41.81 ▲4.18 |
Dashboard /wp-admin | 3.52 ▲0.17 | 45.96 ▼12.81 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 50.49 ▼0.82 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 84.13 ▼13.56 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 37.70 ▲4.02 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for SpeedSize Image & Video AI-Optimizer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲82 | 14.53 ▼0.13 | 1.84 ▲0.17 | 37.73 ▼5.97 |
Dashboard /wp-admin | 2,227 ▲47 | 5.62 ▼0.07 | 81.99 ▼1.24 | 38.16 ▼6.18 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.04 ▲0.04 | 42.39 ▲3.63 | 36.38 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 18.31 ▼4.66 | 635.24 ▼49.32 | 69.39 ▲12.41 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.18 ▼0.06 | 93.81 ▼9.99 | 51.46 ▲6.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% 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
These attributes need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
speedsize-ai-image-optimizer/speedsize.php 77% from 13 tests
The main PHP file in "SpeedSize Image & Video AI-Optimizer" ver. 1.4.23 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("speedsize-ai-image-optimizer.php" instead of "speedsize.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,568 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 244 | 807 | 1,562 |
SVG | 2 | 0 | 0 | 6 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 4 | 44.44% |
Methods | 129 | |
▷ Static methods | 114 | 88.37% |
▷ Public methods | 114 | 88.37% |
▷ Protected methods | 13 | 10.08% |
▷ Private methods | 2 | 1.55% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 20 | |
▷ Global constants | 5 | 25.00% |
▷ Class constants | 15 | 75.00% |
▷ Public constants | 7 | 46.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin