Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/alobaidi-slider/widget.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; AlobaidiSliderWidget has a deprecated constructor
Server metrics [RAM: ▼1.88MB] [CPU: ▼54.71ms] Passed 4 tests
A check of server-side resources used by Alobaidi Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.35 | 4.90 ▼35.93 |
Dashboard /wp-admin | 2.13 ▼1.21 | 6.20 ▼57.60 |
Posts /wp-admin/edit.php | 2.13 ▼1.22 | 8.43 ▼35.27 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.75 | 5.99 ▼90.04 |
Media Library /wp-admin/upload.php | 2.13 ▼1.09 | 5.49 ▼30.36 |
Alobaidi Slider /wp-admin/plugins.php?page=alobaidi_slider_shortocodes | 2.14 | 7.14 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_alobaidisliderwidget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Alobaidi Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲141 | 13.59 ▼0.81 | 6.36 ▲4.70 | 44.69 ▲0.99 |
Dashboard /wp-admin | 2,213 ▲25 | 4.88 ▼0.04 | 100.63 ▼14.06 | 37.97 ▼9.51 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.06 | 34.40 ▼0.86 | 32.88 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,522 ▲3 | 23.21 ▲0.07 | 685.92 ▼35.07 | 51.53 ▼10.06 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.02 | 97.50 ▼24.03 | 44.07 ▼2.66 |
Alobaidi Slider /wp-admin/plugins.php?page=alobaidi_slider_shortocodes | 835 | 2.01 | 24.41 | 30.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/alobaidi-slider/widget.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; AlobaidiSliderWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- widget_alobaidisliderwidget
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/plugins.php?page=alobaidi_slider_shortocodes
- > Deprecated in wp-content/plugins/alobaidi-slider/widget.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; AlobaidiSliderWidget has a deprecated constructor
- > GET request to /wp-admin/plugins.php?page=alobaidi_slider_shortocodes
- > Deprecated in wp-content/plugins/alobaidi-slider/widget.php+130
Function create_function() is deprecated
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
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/alobaidi-slider/alobaidi-slider.php
- > /wp-content/plugins/alobaidi-slider/widget.php
- > /wp-content/plugins/alobaidi-slider/shortcodes-page.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Too many tags (29 tag instead of maximum 10); only the first 5 tags are used in your directory listing
alobaidi-slider/alobaidi-slider.php 92% from 13 tests
The primary PHP file in "Alobaidi Slider" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin664 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 93 | 30 | 337 |
CSS | 1 | 51 | 7 | 292 |
JavaScript | 1 | 13 | 3 | 35 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/alobaidi_slider_prev.png | 1.99KB | 1.62KB | ▼ 18.50% |
images/alobaidi_slider_next.png | 2.01KB | 1.68KB | ▼ 16.59% |