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 gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.65ms] Passed 4 tests
An overview of server-side resources used by Slenderbox
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 34.58 ▲2.92 |
Dashboard /wp-admin | 3.07 ▲0.02 | 43.15 ▼5.58 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 45.63 ▲4.14 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 91.86 ▼565.24 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 29.32 ▼2.69 |
Slenderbox /wp-admin/options-general.php?page=slenderbox/slenderbox.php | 2.96 | 25.91 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
slenderbox_automate |
Browser metrics Passed 4 tests
Checking browser requirements for Slenderbox
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,722 ▲127 | 15.88 ▲0.29 | 11.17 ▼0.13 | 44.69 ▼8.66 |
Dashboard /wp-admin | 2,978 ▲47 | 5.91 ▼0.06 | 131.33 ▼15.43 | 114.54 ▼0.29 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 61.08 ▼3.29 | 93.84 ▼6.39 |
Add New Post /wp-admin/post-new.php | 1,875 ▲192 | 19.18 ▲0.32 | 390.99 ▲15.62 | 112.11 ▲2.35 |
Media Library /wp-admin/upload.php | 1,815 ▲2 | 5.03 ▼0.03 | 141.51 ▲0.73 | 116.23 ▼4.08 |
Slenderbox /wp-admin/options-general.php?page=slenderbox/slenderbox.php | 1,031 | 2.06 | 53.84 | 66.78 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 1 option in the database
- slenderbox_automate
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=slenderbox/slenderbox.php
- > Notice in wp-content/plugins/slenderbox/slenderbox.php+46
Undefined index: set_options
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_option() in wp-content/plugins/slenderbox/slenderbox.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: slenderbox, photo, picture, image, lightbox
slenderbox/slenderbox.php Passed 13 tests
The primary PHP file in "Slenderbox" version 1.1.2 is used by WordPress to initiate all plugin functionality
137 characters long description:
Overlays images on the current page using Slenderbox, a lightweight and framework-free lightbox plugin that can be used with valid HTML5.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin55 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 40 | 49 |
JavaScript | 1 | 0 | 1 | 5 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin