Benchmarks
Plugin footprint 83% 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.02MB] [CPU: ▼6.17ms] Passed 4 tests
An overview of server-side resources used by iMage Brico
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.51 ▼7.94 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.14 ▼6.84 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.97 ▲1.90 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 87.77 ▼6.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.20 ▼3.31 |
Server storage [IO: ▲3.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by iMage Brico
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.20 ▼1.18 | 1.78 ▼0.12 | 43.86 ▼3.26 |
Dashboard /wp-admin | 2,206 ▲17 | 5.89 ▲0.99 | 106.60 ▼11.02 | 38.02 ▼10.49 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.00 | 35.01 ▼2.64 | 31.58 ▼4.75 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.69 ▼5.87 | 680.63 ▲18.81 | 47.00 ▼0.69 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.41 ▲0.19 | 96.85 ▼0.78 | 42.67 ▼1.97 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/imagebrico/pluginLoader.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/imagebrico/iMageBrico.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
imagebrico/iMageBrico.php 92% from 13 tests
The entry point to "iMage Brico" version 0.4 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("imagebrico.php" instead of "iMageBrico.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
No dangerous file extensions were detected923 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 80 | 79 | 628 |
SVG | 2 | 2 | 2 | 108 |
PHP | 2 | 7 | 24 | 67 |
CSS | 2 | 5 | 2 | 51 |
XML | 3 | 0 | 0 | 40 |
HTML | 1 | 2 | 0 | 27 |
INI | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
56 PNG files occupy 0.62MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
swf/img/divider_vertical.png | 26.55KB | 0.09KB | ▼ 99.68% |
swf/components/ColorPic/assets/spectrum.png | 32.49KB | 9.43KB | ▼ 70.97% |
swf/img/feedback.png | 1.23KB | 0.48KB | ▼ 61.27% |
swf/img/inner_shadow.png | 1.08KB | 0.15KB | ▼ 85.95% |
swf/img/layers.png | 3.41KB | 0.66KB | ▼ 80.67% |