Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▼145.04ms] Passed 4 tests
Analyzing server-side resources used by Slider Spider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▲0.32 | 46.69 ▲19.26 |
Dashboard /wp-admin | 3.33 ▲0.28 | 47.46 ▼5.50 |
Posts /wp-admin/edit.php | 3.38 ▲0.27 | 47.39 ▲5.34 |
Add New Post /wp-admin/post-new.php | 5.64 ▲0.21 | 89.26 ▼571.00 |
Media Library /wp-admin/upload.php | 3.21 ▲0.20 | 29.90 ▼9.00 |
Add New Slider /wp-admin/post-new.php?post_type=slider-spider | 3.39 | 46.62 |
All Sliders /wp-admin/edit.php?post_type=slider-spider | 3.26 | 32.98 |
Guide /wp-admin/edit.php?post_type=slider-spider&page=guide | 3.18 | 28.53 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Slider Spider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,871 ▲275 | 17.08 ▲1.57 | 14.35 ▲5.11 | 55.37 ▲8.45 |
Dashboard /wp-admin | 3,004 ▲70 | 6.41 ▲0.21 | 162.50 ▼17.33 | 105.61 ▼1.67 |
Posts /wp-admin/edit.php | 2,805 ▲66 | 2.75 ▲0.04 | 63.14 ▼3.71 | 60.26 ▼28.82 |
Add New Post /wp-admin/post-new.php | 1,773 ▲90 | 18.19 ▼0.27 | 396.35 ▼2.07 | 98.02 ▼7.17 |
Media Library /wp-admin/upload.php | 1,796 ▼11 | 5.35 ▲0.34 | 138.67 ▼25.87 | 127.41 ▲8.39 |
Add New Slider /wp-admin/post-new.php?post_type=slider-spider | 3,587 | 9.22 | 223.71 | 138.98 |
All Sliders /wp-admin/edit.php?post_type=slider-spider | 1,496 | 2.65 | 67.15 | 56.53 |
Guide /wp-admin/edit.php?post_type=slider-spider&page=guide | 1,122 | 2.37 | 60.72 | 49.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/slider-spider/public/partials/slider-spider-public-display.php
- > /wp-content/plugins/slider-spider/admin/partials/slider-spider-admin-display.php
- > /wp-content/plugins/slider-spider/admin/partials/thumbs-gallery.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Notice
Undefined variable: images in wp-content/plugins/slider-spider/admin/partials/thumbs-gallery.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/slider-spider/admin/partials/thumbs-gallery.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/slider-spider/admin/partials/thumbs-gallery.php on line 17
- > PHP Notice
Undefined variable: images in wp-content/plugins/slider-spider/admin/partials/thumbs-gallery.php on line 17
- > PHP Notice
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=slider-spider
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=slider-spider 590:3 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (2.)
- Donate link: Invalid url: ""
slider-spider/slider-spider.php Passed 13 tests
This is the main PHP file of "Slider Spider" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,262 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 309 | 656 | 1,036 |
CSS | 9 | 7 | 50 | 199 |
JavaScript | 8 | 3 | 79 | 27 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 2 | 4.55% |
▷ Public methods | 39 | 88.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.36% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/slider-spider-icon.png | 0.41KB | 0.53KB | 0.00% |
admin/img/slides-stack-icon.png | 0.52KB | 0.50KB | ▼ 3.78% |
public/img/slides-stack-icon.png | 0.52KB | 0.50KB | ▼ 3.78% |