Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/tiny-pictures-image-cdn/tiny.pictures-image-cdn.php+30
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.96MB] [CPU: ▼55.07ms] Passed 4 tests
An overview of server-side resources used by tiny.pictures Image CDN
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 3.70 ▼40.41 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.30 ▼45.11 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.50 ▼43.38 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.26 ▼91.36 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.67 ▼27.83 |
tiny.pictures /wp-admin/options-general.php?page=tinyPictures | 2.05 | 4.50 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
tinyPictures |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for tiny.pictures Image CDN
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 13.27 ▼0.98 | 1.66 ▼0.17 | 39.27 ▼4.85 |
Dashboard /wp-admin | 2,227 ▲42 | 5.84 ▼0.01 | 114.40 ▲14.20 | 44.89 ▲2.41 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.01 ▼0.02 | 40.20 ▲3.66 | 36.89 ▲4.31 |
Add New Post /wp-admin/post-new.php | 1,407 ▼129 | 18.47 ▼4.82 | 582.96 ▼82.89 | 58.29 ▲6.35 |
Media Library /wp-admin/upload.php | 1,409 ▲24 | 4.34 ▲0.11 | 104.52 ▲5.61 | 41.69 ▼1.97 |
tiny.pictures /wp-admin/options-general.php?page=tinyPictures | 1,012 | 9.29 | 250.51 | 86.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/tiny-pictures-image-cdn/tiny.pictures-image-cdn.php+30
Undefined index: user
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- tinyPictures
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=tinyPictures
- > Notice in wp-content/plugins/tiny-pictures-image-cdn/settings.php+11
Undefined index: user
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function TinyPictures\\get_option() in wp-content/plugins/tiny-pictures-image-cdn/tiny.pictures-image-cdn.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/tiny-pictures-image-cdn/settings.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: No descriptions were found for these screenshots #2, #3 in tiny-pictures-image-cdn/assets to your readme.txt
tiny-pictures-image-cdn/tiny.pictures-image-cdn.php 85% from 13 tests
This is the main PHP file of "tiny.pictures Image CDN" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tiny-pictures-image-cdn.php" instead of "tiny.pictures-image-cdn.php")
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
No dangerous file extensions were detected293 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 20 | 13 | 244 |
JavaScript | 1 | 0 | 2 | 49 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 70.00% |
▷ Protected methods | 3 | 30.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected