Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.26MB] [CPU: ▼12.04ms] Passed 4 tests
A check of server-side resources used by Image Projector - a lightbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 33.30 ▼9.39 |
Dashboard /wp-admin | 3.60 ▲0.29 | 43.39 ▼9.54 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 47.22 ▼1.54 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 82.22 ▼27.68 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 32.98 ▲1.69 |
Image Projector /wp-admin/options-general.php?page=wpiv-setting-admin | 3.49 | 33.41 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
image_projector_admin |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
image_projector_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Image Projector - a lightbox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,311 ▲564 | 13.75 ▼0.66 | 16.59 ▲14.79 | 41.70 ▲1.97 |
Dashboard /wp-admin | 2,201 ▲24 | 5.63 ▼0.05 | 92.12 ▼2.43 | 39.01 ▲1.32 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 1.95 ▼0.00 | 36.68 ▼1.66 | 33.91 ▼3.76 |
Add New Post /wp-admin/post-new.php | 1,541 ▲15 | 23.06 ▼0.29 | 666.41 ▲30.00 | 53.20 ▲2.08 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.13 ▼0.08 | 97.15 ▲0.34 | 40.62 ▼1.23 |
Image Projector /wp-admin/options-general.php?page=wpiv-setting-admin | 1,667 | 2.58 | 57.82 | 28.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
Please fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/image-projector/image-projector.php
- > /wp-content/plugins/image-projector/includes/ip-core.php
- > /wp-content/plugins/image-projector/includes/ip-settings.php
- > /wp-content/plugins/image-projector/uninstall.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-projector/includes/wp-admin-tabbed-settings-pages.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: viewer, image, slide, lightbox, photo
image-projector/image-projector.php Passed 13 tests
The main file in "Image Projector - a lightbox" v. 5.6.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
86 characters long description:
The unique lightbox and image slider that also let you navigate between posts by image
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
Everything looks great! No dangerous files found in this plugin6,548 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 1,210 | 393 | 3,791 |
PHP | 5 | 391 | 167 | 1,667 |
CSS | 2 | 108 | 59 | 698 |
PO File | 1 | 123 | 180 | 302 |
SVG | 1 | 1 | 0 | 90 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 127.00 |
▷ Minimum class complexity | 127.00 |
▷ Maximum class complexity | 127.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.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 | 60 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 56 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.67% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin