Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.09ms] Passed 4 tests
This is a short check of server-side resources used by Mobile Frame
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 39.62 ▲0.54 |
Dashboard /wp-admin | 3.33 ▼0.02 | 44.94 ▼12.43 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.87 ▼6.18 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 87.29 ▼4.27 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.54 ▼1.46 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_mobileframe |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Mobile Frame: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.19 ▲0.03 | 1.66 ▲0.04 | 45.51 ▲2.01 |
Dashboard /wp-admin | 2,198 ▲21 | 5.62 ▲0.04 | 81.09 ▼6.70 | 38.04 ▼6.19 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.07 | 33.03 ▼8.70 | 35.73 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 18.26 ▼5.03 | 641.34 ▼35.04 | 68.26 ▼9.12 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▲0.02 | 93.07 ▼6.85 | 40.98 ▼6.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_mobileframe
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/mobile-frame/widget.php
- > /wp-content/plugins/mobile-frame/shortcodes.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
9 plugin tags: photos, iphone, images, ipad, display...
mobile-frame/widget.php 85% from 13 tests
The principal PHP file in "Mobile Frame" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mobile-frame.php" instead of "widget.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 143 characters long)
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
No dangerous file extensions were detected72 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 34 | 69 | 54 |
CSS | 1 | 1 | 0 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 2 | |
▷ Static methods | 1 | 50.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.51MB with 0.28MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/devices/iphone6.png | 42.26KB | 16.87KB | ▼ 60.08% |
assets/devices/ipad1.png | 477.24KB | 238.38KB | ▼ 50.05% |