Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼146.84ms] Passed 4 tests
This is a short check of server-side resources used by Popup Image
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 34.66 ▼1.87 |
Dashboard /wp-admin | 3.10 ▲0.05 | 53.46 ▲0.34 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 44.69 ▼7.82 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 92.96 ▼577.80 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 37.75 ▲0.12 |
Server storage [IO: ▲1.00MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Popup Image
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,816 ▲244 | 16.30 ▲0.65 | 13.14 ▲4.19 | 48.78 ▼2.31 |
Dashboard /wp-admin | 2,971 ▲40 | 5.85 ▼0.09 | 155.62 ▼9.26 | 113.95 ▲1.25 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.72 ▲0.02 | 89.35 ▲18.85 | 95.15 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,687 ▼1,888 | 18.75 ▲3.93 | 401.72 ▼136.15 | 109.69 ▼5.37 |
Media Library /wp-admin/upload.php | 1,808 ▲1 | 5.04 ▲0.04 | 164.58 ▼8.02 | 119.29 ▲0.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/popup-image/public/partials/popup_image-public-display.php
- > /wp-content/plugins/popup-image/admin/partials/popup_image-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: lighbox, thumbinal, modal, popup, fancybox...
popup-image/popup_image.php 85% from 13 tests
The primary PHP file in "Popup Image" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("popup-image.php" instead of "popup_image.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected272 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 131 | 535 | 191 |
CSS | 2 | 10 | 11 | 69 |
JavaScript | 2 | 8 | 45 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.51MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 3.12KB | 2.61KB | ▼ 16.40% |
assets/icon-256x256.png | 6.73KB | 4.58KB | ▼ 31.84% |
assets/screenshot-1.png | 57.43KB | 19.19KB | ▼ 66.59% |
assets/screenshot-3.png | 319.46KB | 114.34KB | ▼ 64.21% |
assets/screenshot-2.png | 139.74KB | 42.77KB | ▼ 69.39% |