Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.65MB] [CPU: ▼3.38ms] Passed 4 tests
Server-side resources used by Lightbox & Modal Popup WordPress Plugin - FooBox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.07 ▲0.61 | 38.81 ▼1.59 |
Dashboard /wp-admin | 3.99 ▲0.68 | 50.58 ▲1.73 |
Posts /wp-admin/edit.php | 4.04 ▲0.68 | 53.02 ▲3.90 |
Add New Post /wp-admin/post-new.php | 6.51 ▲0.63 | 87.86 ▼17.56 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 40.60 ▲5.21 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 4.26 | 39.94 |
Server storage [IO: ▲3.55MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 233 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
can_compress_scripts |
widget_recent-comments |
fs_active_plugins |
widget_recent-posts |
fs_accounts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Lightbox & Modal Popup WordPress Plugin - FooBox
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲210 | 13.69 ▼0.89 | 8.95 ▲7.39 | 28.23 ▼20.79 |
Dashboard /wp-admin | 2,234 ▲43 | 5.83 ▲0.96 | 112.22 ▲6.30 | 46.06 ▲2.39 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 2.00 ▼0.01 | 41.56 ▲4.52 | 38.81 ▲4.31 |
Add New Post /wp-admin/post-new.php | 6,479 ▲4,965 | 20.26 ▲2.75 | 857.38 ▲164.92 | 64.03 ▲14.37 |
Media Library /wp-admin/upload.php | 1,425 ▲34 | 4.30 ▲0.07 | 96.51 ▼4.88 | 43.58 ▼2.44 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,076 | 1.71 | 25.20 | 24.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/foobox-image-lightbox/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_recent-posts
- fs_debug_mode
- theysaidso_admin_options
- fs_active_plugins
- widget_theysaidso_widget
- fs_accounts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/foobox-image-lightbox/free/includes/upgrade.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Exception: This settings view has not been included correctly! in wp-content/plugins/foobox-image-lightbox/free/includes/foopluginbase/views/settings.php:9
- > PHP Warning
require_once(FOOBOX_BASE_PATHcompatibility/class-elementor.php): failed to open stream: No such file or directory in wp-content/plugins/foobox-image-lightbox/compatibility/includes.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/foobox-image-lightbox/free/foobox-free.php:7
- > PHP Fatal error
require_once(): Failed opening required 'FOOBOX_BASE_PATHcompatibility/class-elementor.php' (include_path='.:/usr/share/php') in wp-content/plugins/foobox-image-lightbox/compatibility/includes.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/foobox-image-lightbox/includes/admin/view-getting-started.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/foobox-image-lightbox/free/includes/view-getting-started.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/foobox-image-lightbox/foobox-free.php:25
- > PHP Warning
Use of undefined constant FOOBOX_BASE_PATH - assumed 'FOOBOX_BASE_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/foobox-image-lightbox/compatibility/includes.php on line 3
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Frontend example) image required
foobox-image-lightbox/foobox-free.php 92% from 13 tests
The primary PHP file in "Lightbox & Modal Popup WordPress Plugin - FooBox" version 2.7.27 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("foobox-image-lightbox.php" instead of "foobox-free.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected35,581 lines of code in 170 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 8,457 | 17,636 | 34,952 |
JavaScript | 7 | 94 | 76 | 337 |
PO File | 1 | 52 | 52 | 150 |
CSS | 16 | 31 | 0 | 139 |
Markdown | 1 | 1 | 0 | 3 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 75.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 62 | |
▷ Abstract classes | 3 | 4.84% |
▷ Concrete classes | 59 | 95.16% |
▷ Final classes | 0 | 0.00% |
Methods | 1,360 | |
▷ Static methods | 206 | 15.15% |
▷ Public methods | 968 | 71.18% |
▷ Protected methods | 17 | 1.25% |
▷ Private methods | 375 | 27.57% |
Functions | 122 | |
▷ Named functions | 122 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 165 | |
▷ Global constants | 114 | 69.09% |
▷ Class constants | 51 | 30.91% |
▷ Public constants | 51 | 100.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
8 PNG files occupy 0.19MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
free/css/img/tick3.png | 0.25KB | 0.16KB | ▼ 34.51% |
free/css/img/tick2.png | 0.25KB | 0.16KB | ▼ 34.25% |
assets/img/foobot_red.png | 149.28KB | 49.81KB | ▼ 66.63% |
assets/img/foobot.png | 16.50KB | 8.13KB | ▼ 50.71% |