Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼31.23ms] Passed 4 tests
Analyzing server-side resources used by Image To Break Point
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.88 ▼2.05 |
Dashboard /wp-admin | 3.00 ▼0.30 | 23.14 ▼27.05 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 22.97 ▼23.49 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 25.19 ▼62.36 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 21.86 ▼12.03 |
Image To Break Point /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php | 3.00 | 22.94 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image To Break Point
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,045 ▲299 | 13.91 ▼0.48 | 6.55 ▲4.93 | 41.86 ▼2.94 |
Dashboard /wp-admin | 2,281 ▲90 | 4.90 ▼0.91 | 100.10 ▼8.75 | 39.95 ▲1.91 |
Posts /wp-admin/edit.php | 2,111 ▲25 | 2.01 ▼0.02 | 39.89 ▲1.91 | 34.67 ▲1.21 |
Add New Post /wp-admin/post-new.php | 6,265 ▲4,732 | 19.14 ▼3.95 | 919.13 ▲261.80 | 51.47 ▼2.56 |
Media Library /wp-admin/upload.php | 1,428 ▲40 | 4.23 ▲0.06 | 101.56 ▲2.41 | 44.24 ▲1.14 |
Image To Break Point /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php | 793 | 2.16 | 24.20 | 26.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall gracefully
- > 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.
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php
- > 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.
- > GET request to /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php
- > Notice in wp-content/plugins/image-to-break-point/imagetobreakpoint.php+148
Undefined variable: v
- > GET request to /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=image-to-break-point/imagetobreakpoint.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-to-break-point/imagetobreakpoint.php:25
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (screenshot-1.jpg)
image-to-break-point/imagetobreakpoint.php 85% from 13 tests
Analyzing the main PHP file in "Image To Break Point" version 1.0.0
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 306 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("image-to-break-point.php" instead of "imagetobreakpoint.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin259 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 40 | 11 | 227 |
JavaScript | 2 | 1 | 1 | 31 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/mobile_portrait.png | 0.65KB | 0.42KB | ▼ 34.80% |
img/desktop_landscape.png | 0.70KB | 0.54KB | ▼ 22.49% |
screenshot-1.png | 11.13KB | 4.29KB | ▼ 61.45% |