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: ▼12.19ms] Passed 4 tests
This is a short check of server-side resources used by Responsivity
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.18 ▼7.95 |
Dashboard /wp-admin | 3.33 ▼0.02 | 43.38 ▼15.70 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.30 ▼4.69 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.85 ▼20.41 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.50 ▼2.26 |
Responsivity /wp-admin/tools.php?page=responsivity | 3.26 | 33.37 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Responsivity
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲22 | 14.23 ▲0.23 | 1.52 ▼0.72 | 38.57 ▼5.72 |
Dashboard /wp-admin | 2,199 ▲22 | 5.54 ▼0.11 | 82.67 ▼6.60 | 35.28 ▼2.95 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.00 ▼0.04 | 37.27 ▲1.18 | 32.91 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.91 ▼0.51 | 612.24 ▼29.32 | 57.09 ▼0.28 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.20 ▼0.07 | 96.27 ▲2.50 | 40.79 ▼2.91 |
Responsivity /wp-admin/tools.php?page=responsivity | 1,009 | 1.75 | 27.14 | 31.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/responsivity/responsivity-class.php
- > /wp-content/plugins/responsivity/viewer/index.php
- > /wp-content/plugins/responsivity/responsivity.php
- > /wp-content/plugins/responsivity/admin-page.php
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: mobile friendly, responsivity tool, mobile view, mobile, responsivity viewer...
responsivity/responsivity.php Passed 13 tests
The principal PHP file in "Responsivity" v. 0.0.6 is loaded by WordPress automatically on each request
77 characters long description:
A tool that allows to make responsivity arrangements easier for web projects.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,732 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 62 | 25 | 2,496 |
SVG | 1 | 0 | 0 | 685 |
PHP | 7 | 208 | 59 | 379 |
JavaScript | 2 | 105 | 11 | 152 |
Markdown | 2 | 3 | 0 | 20 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 5.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
viewer/responsivity-favicon.png | 3.03KB | 2.12KB | ▼ 29.89% |