Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼297.80ms] Passed 4 tests
An overview of server-side resources used by Altibox
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.12 | 62.62 ▲10.61 |
Dashboard /wp-admin | 3.48 ▲0.06 | 34.09 ▲0.09 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 39.25 ▲1.67 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 94.23 ▼1,193.53 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 25.69 ▲0.59 |
Altibox /wp-admin/upload.php?page=altibox-settings-page | 3.35 | 24.40 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 2 new options
New WordPress options |
---|
altibox_selectors |
altibox_version |
Browser metrics Passed 4 tests
A check of browser resources used by Altibox
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,884 ▲140 | 16.64 ▲0.93 | 11.79 ▲4.84 | 2.26 ▲0.11 |
Dashboard /wp-admin | 2,903 ▲42 | 6.16 ▲0.01 | 120.19 ▼15.22 | 161.55 ▼1.90 |
Posts /wp-admin/edit.php | 2,699 ▲8 | 3.23 ▲0.00 | 64.59 ▲0.03 | 141.31 ▼4.92 |
Add New Post /wp-admin/post-new.php | 1,760 ▲106 | 21.57 ▲0.40 | 443.57 ▼2.40 | 158.26 ▼5.50 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.54 ▲0.01 | 153.17 ▲19.56 | 189.36 ▲2.65 |
Altibox /wp-admin/upload.php?page=altibox-settings-page | 1,295 | 2.44 | 56.45 | 144.95 |
Uninstaller [IO: ▲0.05MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following itemsThe uninstall procedure has failed, leaving 3 options in the database
- Uninstall procedure validation failed for this plugin
- > Error in wp-content/plugins/altibox/admin/class-altibox-admin.php+12
Uncaught ArgumentCountError: Too few arguments to function Altibox_Admin::__construct(), 0 passed in wp-content/plugins/altibox/altibox.php on line 33 and exactly 2 expected in wp-content/plugins/altibox/admin/class-altibox-admin.php:12
Stack trace:
#0 wp-content/plugins/altibox/altibox.php(33): Altibox_Admin->__construct()
#1 wp-includes/class-wp-hook.php(307): deactivate_altibox()
#2 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(474): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(812): do_action() - Uninstaller has failed for this plugin, leaving 22 files (0.05MB) in the plugin directory
- (new file) admin/assets/css/altibox-admin.css
- (new file) admin/assets/js/altibox-admin.js
- (new file) altibox.php
- (new file) admin/views/includes/altibox-admin-message.php
- (new file) includes/class-altibox-activator.php
- (new file) admin/class-altibox-admin.php
- (new file) admin/index.php
- (new file) admin/views/includes/altibox-admin-sidebar.php
- (new file) admin/views/altibox-admin-settings-page.php
- (new file) LICENSE.txt
- ...
- recovery_mode_email_last_sent
- altibox_version
- altibox_selectors
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/altibox/admin/views/includes/altibox-admin-message.php
- > /wp-content/plugins/altibox/admin/views/includes/altibox-admin-sidebar.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: message in wp-content/plugins/altibox/admin/views/includes/altibox-admin-message.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Altibox_Admin' not found in wp-content/plugins/altibox/includes/class-altibox-deactivator.php:5
- > PHP Fatal error
Uncaught Error: Class 'Altibox' not found in wp-content/plugins/altibox/includes/class-altibox-activator.php:5
- > PHP Notice
Undefined variable: message in wp-content/plugins/altibox/admin/views/includes/altibox-admin-message.php on line 1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/altibox/admin/views/altibox-admin-settings-page.php:1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/altibox/admin/views/includes/altibox-admin-message.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/altibox/admin/views/includes/altibox-admin-message.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
altibox/altibox.php Passed 13 tests
The main PHP file in "Altibox" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
Altibox is a lightweight and clean image viewer for WordPress.
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected561 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 130 | 185 | 465 |
CSS | 2 | 3 | 2 | 95 |
JavaScript | 2 | 0 | 3 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 1 | 3.03% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin