Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.75MB] [CPU: ▼28.76ms] Passed 4 tests
Analyzing server-side resources used by demon image annotation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 44.46 ▲2.53 |
Dashboard /wp-admin | 3.20 ▼0.11 | 24.48 ▼21.42 |
Posts /wp-admin/edit.php | 3.20 ▼0.16 | 25.79 ▼22.52 |
Add New Post /wp-admin/post-new.php | 3.20 ▼2.69 | 30.39 ▼62.64 |
Media Library /wp-admin/upload.php | 3.20 ▼0.03 | 25.01 ▼8.45 |
Image Notes /wp-admin/admin.php?page=dia_image_notes | 3.20 | 24.25 |
Usage /wp-admin/admin.php?page=dia_usage | 3.20 | 23.36 |
Settings /wp-admin/admin.php?page=dia_settings | 3.20 | 27.73 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_demon_imagenote |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for demon image annotation
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,013 ▲278 | 13.81 ▼0.57 | 10.32 ▲8.19 | 42.68 ▼3.74 |
Dashboard /wp-admin | 2,288 ▲100 | 5.86 ▲0.96 | 103.87 ▼2.15 | 51.66 ▲10.23 |
Posts /wp-admin/edit.php | 2,173 ▲84 | 2.02 ▼0.01 | 38.06 ▼1.21 | 41.60 ▲5.65 |
Add New Post /wp-admin/post-new.php | 1,431 ▼90 | 16.05 ▼6.87 | 542.85 ▼103.50 | 184.62 ▲126.61 |
Media Library /wp-admin/upload.php | 1,467 ▲82 | 4.36 ▲0.17 | 108.55 ▲4.64 | 47.02 ▲1.85 |
Image Notes /wp-admin/admin.php?page=dia_image_notes | 1,121 | 2.32 | 28.41 | 42.02 |
Usage /wp-admin/admin.php?page=dia_usage | 1,136 | 2.21 | 26.28 | 32.71 |
Settings /wp-admin/admin.php?page=dia_settings | 1,403 | 1.85 | 26.89 | 55.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie tables were found after uninstall: 1 table
- wp_demon_imagenote
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 13 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dia_settings
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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 take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/demon-image-annotation/includes/run-config.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/demon-image-annotation/includes/run-config.php on line 4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/demon-image-annotation/includes/run-config.php on line 5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/demon-image-annotation/includes/run-config.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% 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 to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
demon-image-annotation/demon-image-annotation.php 92% from 13 tests
The main file in "demon image annotation" v. 5.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 171 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected2,710 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 211 | 293 | 1,781 |
JavaScript | 3 | 111 | 79 | 631 |
CSS | 2 | 30 | 14 | 298 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 90.00 |
▷ Minimum class complexity | 90.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 7.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
3 PNG files occupy 0.15MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/black.png | 49.57KB | 0.09KB | ▼ 99.81% |
icon.png | 50.73KB | 0.83KB | ▼ 98.35% |
images/asterisk_yellow.png | 56.43KB | 0.67KB | ▼ 98.81% |