Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.74ms] Passed 4 tests
An overview of server-side resources used by WoPo Mockup Maker - Device Mockup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.70 ▼9.30 |
Dashboard /wp-admin | 3.31 ▲0.01 | 45.51 ▼4.40 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.33 ▲2.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 92.69 ▼3.70 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.08 ▲3.09 |
Server storage [IO: ▲16.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 109 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WoPo Mockup Maker - Device Mockup
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.27 ▼1.48 | 4.58 ▲2.63 | 43.50 ▼0.43 |
Dashboard /wp-admin | 2,209 ▲21 | 4.87 ▲0.01 | 109.64 ▼11.46 | 41.54 ▼3.02 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▼0.02 | 39.43 ▲4.62 | 35.46 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.29 ▲0.70 | 620.03 ▼109.86 | 46.57 ▼23.85 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.26 ▲0.04 | 93.88 ▼17.01 | 42.22 ▼1.20 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wopo-mockup-maker/wopo-mockup-maker.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #10, #2, #3, #4, #5, #6, #7, #8, #9 in wopo-mockup-maker/assets to your readme.txt
wopo-mockup-maker/wopo-mockup-maker.php 69% from 13 tests
The primary PHP file in "WoPo Mockup Maker - Device Mockup" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
- Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.2")
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.2.4" instead of "7.2")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin1,899 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 3 | 12 | 1,867 |
PHP | 1 | 3 | 14 | 32 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
104 PNG files occupy 15.57MB with 8.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/device-mockups/iPhone5/portrait_black.png | 140.66KB | 65.68KB | ▼ 53.31% |
assets/device-mockups/galaxyTab4/portrait_white.png | 180.30KB | 114.17KB | ▼ 36.68% |
assets/device-mockups/galaxyS5/landscape_gold.png | 174.48KB | 75.04KB | ▼ 56.99% |
assets/device-mockups/apple_watch/sport/red.png | 40.32KB | 20.05KB | ▼ 50.27% |
assets/device-mockups/iPhone7/portrait_red.png | 16.08KB | 5.43KB | ▼ 66.23% |