Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼1.58ms] Passed 4 tests
Server-side resources used by Pojo Lightbox
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.47 ▼2.55 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.01 ▼3.24 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 46.86 ▲0.19 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 93.57 ▲8.57 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 37.58 ▼0.72 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Pojo Lightbox: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.25 ▼1.12 | 1.58 ▼0.54 | 43.24 ▼4.40 |
Dashboard /wp-admin | 2,212 ▲24 | 4.85 ▼0.05 | 100.56 ▼19.86 | 40.52 ▼2.41 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.04 ▲0.03 | 39.53 ▲0.94 | 36.48 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,520 ▲6 | 17.69 ▲0.20 | 608.32 ▼101.41 | 57.17 ▲3.33 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.20 ▲0.02 | 95.84 ▼7.16 | 43.58 ▼2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
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 | 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 | This is just a short smoke test looking for browser issues
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 important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: slideshow, images, overlay, media, lightbox...
pojo-lightbox/pojo-lightbox.php Passed 13 tests
"Pojo Lightbox" version 2.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
111 characters long description:
This plugin used to add the lightbox (overlay) effect to all images on your WordPress site with Pojo Framework.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin8,438 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 1,593 | 752 | 5,524 |
CSS | 6 | 137 | 216 | 1,716 |
PHP | 5 | 97 | 35 | 514 |
LESS | 1 | 89 | 29 | 424 |
PO File | 1 | 678 | 1,375 | 259 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 3 | 75.00% |
Methods | 20 | |
▷ Static methods | 1 | 5.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 3 | 15.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/prettyPhoto/themes/default/sprite_y.png | 1.13KB | 0.13KB | ▼ 88.81% |
assets/prettyPhoto/themes/dark_rounded/contentPattern.png | 0.13KB | 0.09KB | ▼ 25.38% |
assets/prettyPhoto/themes/light_rounded/sprite.png | 4.00KB | 2.56KB | ▼ 36.16% |
assets/prettyPhoto/themes/dark_rounded/btnNext.png | 1.38KB | 1.14KB | ▼ 17.29% |
assets/prettyPhoto/themes/default/sprite_x.png | 1.07KB | 0.11KB | ▼ 89.79% |