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: ▲4.99MB] [CPU: ▲23.80ms] 75% from 4 tests
This is a short check of server-side resources used by Device Wrapper
The following require your attention
- CPU: Total CPU usage must kept under 500.00ms (currently 2,068.24ms on /wp-admin/options-general.php?page=device-wrapper)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.88 ▲5.42 | 62.77 ▲21.84 |
Dashboard /wp-admin | 8.90 ▲5.60 | 79.07 ▲28.21 |
Posts /wp-admin/edit.php | 8.90 ▲5.54 | 78.64 ▲27.49 |
Add New Post /wp-admin/post-new.php | 9.31 ▲3.42 | 116.20 ▲17.65 |
Media Library /wp-admin/upload.php | 8.90 ▲5.67 | 71.88 ▲35.05 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.90 | 58.13 |
Device Wrapper /wp-admin/options-general.php?page=device-wrapper | 8.90 | 2,068.24 |
Server storage [IO: ▲5.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 249 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
fs_active_plugins |
fs_accounts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
fs_debug_mode |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Device Wrapper
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,917 ▲156 | 13.59 ▼0.76 | 8.45 ▲6.57 | 28.21 ▼15.64 |
Dashboard /wp-admin | 2,215 ▲41 | 5.54 ▼0.13 | 88.07 ▼8.28 | 40.84 ▼2.47 |
Posts /wp-admin/edit.php | 2,127 ▲27 | 2.12 ▲0.09 | 38.54 ▲3.47 | 36.94 ▼3.23 |
Add New Post /wp-admin/post-new.php | 6,200 ▲4,672 | 20.66 ▼2.51 | 863.35 ▲146.45 | 72.90 ▲19.68 |
Media Library /wp-admin/upload.php | 1,488 ▲88 | 4.22 ▲0.05 | 97.58 ▼2.31 | 45.52 ▲1.34 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,078 | 1.70 | 23.92 | 29.96 |
Device Wrapper /wp-admin/options-general.php?page=device-wrapper | 989 | 1.66 | 28.02 | 57.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/device-wrapper/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 9 options
- fs_active_plugins
- widget_recent-posts
- fs_accounts
- widget_theysaidso_widget
- fs_debug_mode
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: gadget, wrapper, device, wrap
device-wrapper/device-wrapper.php Passed 13 tests
The main PHP file in "Device Wrapper" ver. 1.1.2 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
This plugin enables users to wrap an image, video or iframe into a device mockup.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin40,903 lines of code in 190 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 8,005 | 17,310 | 33,442 |
SVG | 37 | 64 | 12 | 4,532 |
CSS | 16 | 28 | 41 | 938 |
JavaScript | 11 | 112 | 366 | 922 |
Sass | 3 | 69 | 12 | 458 |
JSON | 3 | 0 | 0 | 442 |
PO File | 1 | 67 | 125 | 169 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 93.06 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 48 | |
▷ Abstract classes | 2 | 4.17% |
▷ Concrete classes | 46 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 1,259 | |
▷ Static methods | 197 | 15.65% |
▷ Public methods | 870 | 69.10% |
▷ Protected methods | 17 | 1.35% |
▷ Private methods | 372 | 29.55% |
Functions | 108 | |
▷ Named functions | 108 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 149 | |
▷ Global constants | 102 | 68.46% |
▷ Class constants | 47 | 31.54% |
▷ Public constants | 47 | 100.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
14 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/images/icons/pixel.png | 0.52KB | 0.39KB | ▼ 24.86% |
src/images/icons/ipad_pro.png | 0.46KB | 0.35KB | ▼ 23.34% |
src/images/icons/galaxy.png | 0.49KB | 0.42KB | ▼ 14.83% |
src/images/icons/iwatch.png | 2.17KB | 1.34KB | ▼ 38.34% |
src/images/icons/ipad.png | 0.40KB | 0.33KB | ▼ 16.91% |