Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.96ms] Passed 4 tests
Analyzing server-side resources used by WordPress prettyPhoto
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.49 ▼5.79 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.95 ▲1.07 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 43.29 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.06 ▼3.53 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.20 ▲2.65 |
Server storage [IO: ▲1.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WordPress prettyPhoto: 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,888 ▲142 | 13.64 ▼0.75 | 10.17 ▲8.03 | 42.85 ▼0.33 |
Dashboard /wp-admin | 2,211 ▲23 | 4.85 ▼1.04 | 99.37 ▼20.17 | 39.61 ▼6.11 |
Posts /wp-admin/edit.php | 2,088 ▼1 | 2.00 ▼0.02 | 35.39 ▼1.60 | 33.50 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,535 ▲6 | 23.16 ▲4.93 | 671.93 ▲42.21 | 54.88 ▲13.05 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.21 ▼0.05 | 94.58 ▼6.16 | 41.74 ▼2.45 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Enable/Disable prettyPhoto), #2 (Image Popup), #3 (Elementor Addon)
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
prettyphoto/prettyphoto.php 92% from 13 tests
"WordPress prettyPhoto" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("3.1" instead of "3.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected416 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 103 | 36 | 245 |
CSS | 1 | 0 | 0 | 170 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 22 | 91.67% |
▷ Protected methods | 2 | 8.33% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
30 PNG files occupy 1.41MB with 0.58MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prettyPhoto/default/sprite.png | 6.53KB | 3.21KB | ▼ 50.87% |
images/prettyPhoto/facebook/btnPrevious.png | 0.81KB | 0.58KB | ▼ 27.90% |
images/prettyPhoto/light_rounded/sprite.png | 4.00KB | 2.56KB | ▼ 36.16% |
images/prettyPhoto/light_square/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
screenshot-2.png | 1,292.83KB | 338.04KB | ▼ 73.85% |