Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.08ms] Passed 4 tests
An overview of server-side resources used by Simple Image Popup
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 41.17 ▲3.14 |
Dashboard /wp-admin | 3.39 ▲0.04 | 60.59 ▲0.44 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 49.17 ▲1.74 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 82.40 ▼17.62 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 39.71 ▲5.18 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
sip_plugin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Simple Image Popup: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,025 ▲264 | 14.76 ▲0.52 | 5.05 ▲3.38 | 43.97 ▲3.37 |
Dashboard /wp-admin | 2,353 ▲172 | 6.19 ▲0.52 | 110.99 ▲11.36 | 42.30 ▲0.35 |
Posts /wp-admin/edit.php | 2,275 ▲175 | 3.30 ▲1.29 | 46.83 ▲11.16 | 31.76 ▼4.48 |
Add New Post /wp-admin/post-new.php | 1,704 ▲178 | 24.60 ▲0.87 | 585.33 ▼113.31 | 29.88 ▼23.75 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.17 ▼0.04 | 81.57 ▼25.43 | 44.36 ▼2.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- sip_plugin_options
- widget_recent-comments
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/simple-image-popup/js/index.php
- > /wp-content/plugins/simple-image-popup/css/index.php
- > /wp-content/plugins/simple-image-popup/index.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: alert, simple, lightbox, popup, image...
simple-image-popup/simple-image-popup.php Passed 13 tests
The main PHP script in "Simple Image Popup" version 2.4.0 is automatically included on every request by WordPress
49 characters long description:
Display a simple image in a lightbox on page load
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin789 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 52 | 6 | 373 |
PHP | 2 | 159 | 28 | 323 |
JavaScript | 3 | 26 | 25 | 93 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin