Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.15ms] Passed 4 tests
An overview of server-side resources used by WAJ Image Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 44.57 ▲3.10 |
Dashboard /wp-admin | 3.40 ▲0.05 | 47.25 ▼18.90 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 48.79 ▼0.64 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 87.30 ▼4.15 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 42.57 ▲6.74 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 193 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WAJ Image Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,791 ▲45 | 14.37 ▲0.02 | 1.69 ▼0.44 | 38.82 ▼10.66 |
Dashboard /wp-admin | 2,198 ▲31 | 5.61 ▲0.03 | 81.54 ▼21.23 | 38.76 ▲0.63 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.05 | 39.98 ▲4.91 | 36.46 ▲1.68 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.36 ▲0.27 | 714.67 ▲9.77 | 58.73 ▲1.54 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.17 ▼0.03 | 104.76 ▼12.59 | 44.79 ▼1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/waj-image-slider/vendor/waughj/html-image-slider/demo.php
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-image-slider/vendor/waughj/verified-arguments/tests/VerifiedArgumentsTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'WaughJ\\VerifiedArguments\\VerifiedArguments' not found in wp-content/plugins/waj-image-slider/vendor/waughj/verified-arguments-same-type/src/VerifiedArgumentsSameType.php:8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-image-slider/vendor/waughj/html-attribute-list/tests/HTMLAttributeListTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-image-slider/vendor/waughj/file/tests/FileTest.php:7
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/waj-image-slider/vendor/waughj/html-image-slider/vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/waj-image-slider/vendor/waughj/html-image-slider/demo.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-image-slider/vendor/waughj/file-loader/tests/FileLoaderTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'WaughJ\\HTMLImage\\HTMLImage' not found in wp-content/plugins/waj-image-slider/vendor/waughj/html-image-responsive/src/HTMLImageResponsive.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-image-slider/vendor/waughj/wp-upload-picture/tests/WPUploadPictureTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/waj-image-slider/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-image-slider/vendor/waughj/directory/tests/DirectoryTest.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: html generator, loader, image
waj-image-slider/waj-image-slider.php Passed 13 tests
"WAJ Image Slider" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
65 characters long description:
Plugin that creates shortcode for easy creation o' image sliders.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected7,787 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 21 | 0 | 0 | 3,770 |
PHP | 58 | 603 | 1,314 | 3,265 |
Markdown | 24 | 229 | 0 | 488 |
JavaScript | 3 | 21 | 4 | 228 |
CSS | 2 | 1 | 0 | 19 |
XML | 1 | 0 | 0 | 12 |
YAML | 2 | 2 | 0 | 5 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 22 | |
Interfaces | 7 | |
Traits | 1 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 336 | |
▷ Static methods | 28 | 8.33% |
▷ Public methods | 310 | 92.26% |
▷ Protected methods | 1 | 0.30% |
▷ Private methods | 25 | 7.44% |
Functions | 53 | |
▷ Named functions | 36 | 67.92% |
▷ Anonymous functions | 17 | 32.08% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
19 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) vendor/waughj/html-image-slider/demo-img/water-2000x1333.png | 0.00KB | 0.00KB | 0.00% |
(invalid) vendor/waughj/html-image-slider/demo-img/water-1000x667.png | 0.00KB | 0.00KB | 0.00% |
(invalid) vendor/waughj/html-image-slider/demo-img/clear-1000x667.png | 0.00KB | 0.00KB | 0.00% |
(invalid) vendor/waughj/html-image-slider/demo-img/clear-500x334.png | 0.00KB | 0.00KB | 0.00% |
(invalid) vendor/waughj/wp-upload-picture/2018/12/demo.png | 0.00KB | 0.00KB | 0.00% |