Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.80ms] Passed 4 tests
An overview of server-side resources used by ZIOR Lightbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.32 ▲0.26 |
Dashboard /wp-admin | 3.33 ▼0.01 | 46.13 ▼13.67 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.91 ▼0.76 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 81.91 ▼9.01 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.44 ▲2.13 |
ZIOR Lightbox /wp-admin/options-general.php?page=zior_lightbox_settings | 3.22 | 29.38 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for ZIOR Lightbox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,957 ▲207 | 13.84 ▼0.51 | 12.63 ▲11.06 | 47.99 ▲7.17 |
Dashboard /wp-admin | 2,199 ▲19 | 5.55 ▼0.11 | 81.80 ▼4.89 | 36.28 ▼3.17 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.04 | 35.28 ▼1.12 | 33.44 ▲1.04 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 18.21 ▼5.29 | 612.47 ▼73.84 | 66.22 ▲12.08 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.21 ▼0.01 | 105.49 ▲5.00 | 45.18 ▼0.92 |
ZIOR Lightbox /wp-admin/options-general.php?page=zior_lightbox_settings | 881 | 1.99 | 22.27 | 26.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zior-lightbox/includes/settings.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zior-lightbox/includes/actions.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/zior-lightbox/zr-lightbox.php:73
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 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
2 plugin tags: lightbox, auto lightbox
zior-lightbox/zr-lightbox.php 92% from 13 tests
The entry point to "ZIOR Lightbox" version 0.1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zior-lightbox.php" instead of "zr-lightbox.php")
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
No dangerous file extensions were detected159 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 22 | 69 | 157 |
CSS | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 9 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 10.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
build/images/close.0cfd6489.0cfd6489.png | 0.27KB | 0.29KB | 0.00% |
build/images/next.62074ac7.62074ac7.png | 1.32KB | 1.58KB | 0.00% |
build/images/prev.0edc57cc.0edc57cc.png | 1.33KB | 1.59KB | 0.00% |