Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▲0.53ms] Passed 4 tests
Analyzing server-side resources used by ARI Fancy Lightbox - WordPress Popup
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 38.13 ▲1.64 |
Dashboard /wp-admin | 3.49 ▲0.15 | 50.96 ▼5.66 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 49.27 ▲3.80 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 92.15 ▲2.42 |
Media Library /wp-admin/upload.php | 3.41 ▲0.19 | 40.67 ▲3.72 |
Server storage [IO: ▲3.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 455 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
ari_fancy_lightbox |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
ari_fancy_lightbox_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for ARI Fancy Lightbox - WordPress Popup
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,896 ▲135 | 13.89 ▼0.48 | 15.34 ▲13.81 | 37.77 ▼1.27 |
Dashboard /wp-admin | 2,211 ▲33 | 5.59 ▼0.02 | 86.40 ▼28.22 | 38.56 ▼7.50 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.99 ▼0.04 | 38.92 ▲0.76 | 36.60 ▲4.00 |
Add New Post /wp-admin/post-new.php | 1,550 ▲10 | 18.24 ▲0.01 | 619.63 ▼54.88 | 70.78 ▲13.48 |
Media Library /wp-admin/upload.php | 1,410 ▲7 | 4.24 ▲0.07 | 96.36 ▼2.45 | 42.24 ▼3.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- widget_recent-comments
- ari_fancy_lightbox
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- ari_fancy_lightbox_settings
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ari-fancy-lightbox/loader.php
- > /wp-content/plugins/ari-fancy-lightbox/ari-fancy-lightbox.php
- 37× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Ari\\Models\\Model' not found in wp-content/plugins/ari-fancy-lightbox/includes/models/class-settings.php:7
- > PHP Fatal error
Uncaught Error: Class 'Ari\\Controllers\\Display' not found in wp-content/plugins/ari-fancy-lightbox/includes/controllers/settings/class-display.php:6
- > PHP Fatal error
Uncaught Error: Class 'Ari\\App\\Installer' not found in wp-content/plugins/ari-fancy-lightbox/includes/class-installer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Ari\\Forms\\Field' not found in wp-content/plugins/ari-fancy-lightbox/libraries/arisoft/core/forms/fields/class-checkbox-group.php:6
- > PHP Fatal error
Uncaught Error: Class 'Ari\\App\\Plugin' not found in wp-content/plugins/ari-fancy-lightbox/includes/class-plugin.php:12
- > PHP Fatal error
Uncaught Error: Class 'Ari\\Forms\\Form' not found in wp-content/plugins/ari-fancy-lightbox/includes/forms/class-settings.php:6
- > PHP Fatal error
Uncaught Error: Class 'Ari\\Views\\View' not found in wp-content/plugins/ari-fancy-lightbox/includes/views/class-base.php:7
- > PHP Warning
Use of undefined constant ARIFANCYLIGHTBOX_URL - assumed 'ARIFANCYLIGHTBOX_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ari-fancy-lightbox/includes/defines.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'Ari\\Utils\\Options' not found in wp-content/plugins/ari-fancy-lightbox/libraries/arisoft/core/controllers/class-controller-options.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ari-fancy-lightbox/includes/views/settings/tmpl/default.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5, #6 in ari-fancy-lightbox/assets to your readme.txt
ari-fancy-lightbox/ari-fancy-lightbox.php Passed 13 tests
"ARI Fancy Lightbox - WordPress Popup" version 1.3.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
Full-featured lightbox plugin for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected6,009 lines of code in 87 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 63 | 1,242 | 16 | 3,277 |
CSS | 4 | 297 | 43 | 2,149 |
HTML | 1 | 47 | 16 | 330 |
SVG | 9 | 0 | 0 | 150 |
JavaScript | 10 | 19 | 118 | 103 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 7.09 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 1 | 1.79% |
▷ Concrete classes | 55 | 98.21% |
▷ Final classes | 1 | 1.82% |
Methods | 197 | |
▷ Static methods | 40 | 20.30% |
▷ Public methods | 146 | 74.11% |
▷ Protected methods | 39 | 19.80% |
▷ Private methods | 12 | 6.09% |
Functions | 29 | |
▷ Named functions | 4 | 13.79% |
▷ Anonymous functions | 25 | 86.21% |
Constants | 17 | |
▷ Global constants | 17 | 100.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
92 compressed PNG files occupy 0.09MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/pdfjs/web/images/secondaryToolbarButton-scrollWrapped.png | 0.29KB | 0.36KB | 0.00% |
assets/pdfjs/web/images/findbarButton-previous.png | 0.19KB | 0.31KB | 0.00% |
assets/pdfjs/web/images/treeitem-collapsed-rtl@2x.png | 0.16KB | 0.21KB | 0.00% |
assets/pdfjs/web/images/secondaryToolbarButton-spreadOdd@2x.png | 0.61KB | 0.72KB | 0.00% |
assets/pdfjs/web/images/toolbarButton-viewOutline@2x.png | 0.32KB | 0.49KB | 0.00% |