Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.61ms] Passed 4 tests
This is a short check of server-side resources used by Responsive Media
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.66 ▼2.38 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.59 ▼13.42 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.06 ▼5.81 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 82.89 ▼12.28 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 32.84 ▼2.93 |
Responsive Media /wp-admin/options-general.php?page=responsive_media_options | 3.22 | 28.79 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
responsive_media_option |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Responsive Media
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲85 | 13.24 ▼1.41 | 1.99 ▲0.29 | 41.62 ▼2.85 |
Dashboard /wp-admin | 2,207 ▲22 | 5.82 ▲0.92 | 105.47 ▲3.53 | 40.81 ▼4.38 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.04 | 38.85 ▼2.34 | 35.87 ▼1.36 |
Add New Post /wp-admin/post-new.php | 1,539 ▲19 | 23.16 ▼0.20 | 659.37 ▲1.49 | 60.31 ▲3.43 |
Media Library /wp-admin/upload.php | 1,383 ▼2 | 4.26 ▲0.03 | 97.51 ▼11.83 | 43.39 ▼3.28 |
Responsive Media /wp-admin/options-general.php?page=responsive_media_options | 860 | 2.03 | 23.55 | 28.42 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- responsive_media_option
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/responsive-media/responsive-media.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== responsive-media ===
) - Tags: Please delete some tags, you are using 17 tag instead of maximum 10
responsive-media/responsive-media.php Passed 13 tests
The main PHP file in "Responsive Media" ver. 1.2.0 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
Make auto embedded media responsive
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected185 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 40 | 51 | 157 |
PO File | 1 | 7 | 9 | 28 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected