Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼292.93ms] Passed 4 tests
Analyzing server-side resources used by Post Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 60.13 ▲11.77 |
Dashboard /wp-admin | 3.46 ▲0.05 | 33.45 ▲0.43 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 37.69 ▲0.71 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 97.25 ▼1,171.62 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 25.29 ▼1.23 |
Add New /wp-admin/post-new.php?post_type=adlpostslider | 3.63 | 45.02 |
Usage & Support /wp-admin/edit.php?post_type=adlpostslider&page=usage | 3.37 | 26.95 |
All Post Sliders /wp-admin/edit.php?post_type=adlpostslider | 3.48 | 27.95 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Post 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 / | 3,829 ▲75 | 16.14 ▲0.16 | 5.85 ▲0.17 | 2.61 ▼0.28 |
Dashboard /wp-admin | 2,934 ▲80 | 6.13 ▼0.03 | 114.28 ▼22.04 | 157.58 ▼10.98 |
Posts /wp-admin/edit.php | 2,761 ▲67 | 3.26 ▲0.02 | 70.76 ▲6.18 | 153.28 ▲8.35 |
Add New Post /wp-admin/post-new.php | 1,688 ▼64 | 16.24 ▼5.34 | 438.41 ▼26.09 | 157.92 ▼2.62 |
Media Library /wp-admin/upload.php | 1,738 ▲40 | 5.52 ▲0.03 | 146.41 ▼2.22 | 190.10 ▲4.48 |
Add New /wp-admin/post-new.php?post_type=adlpostslider | 5,594 | 6.65 | 165.15 | 198.66 |
Usage & Support /wp-admin/edit.php?post_type=adlpostslider&page=usage | 1,539 | 4.75 | 70.12 | 114.10 |
All Post Sliders /wp-admin/edit.php?post_type=adlpostslider | 1,685 | 5.46 | 77.39 | 115.06 |
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 50% 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 | 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
Please fix the following items
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/adl-post-slider/includes/aps-style.php
- > /wp-content/plugins/adl-post-slider/themes/themea.php
- > /wp-content/plugins/adl-post-slider/themes/themeb.php
- > /wp-content/plugins/adl-post-slider/adl-post-slider.php
- > /wp-content/plugins/adl-post-slider/includes/aps-image-resizer.php
- > /wp-content/plugins/adl-post-slider/includes/aps-upgrade.php
- > /wp-content/plugins/adl-post-slider/includes/aps-cpt.php
- 37× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/adl-post-slider/includes/aps-featured-post.php:4
- > PHP Notice
Undefined variable: random_aps_wrapper_id in wp-content/plugins/adl-post-slider/includes/aps-style.php on line 17
- > PHP Notice
Undefined variable: nextButton in wp-content/plugins/adl-post-slider/includes/aps-style.php on line 55
- > PHP Notice
Undefined variable: prevButton in wp-content/plugins/adl-post-slider/includes/aps-style.php on line 58
- > PHP Notice
Undefined variable: random_aps_wrapper_id in wp-content/plugins/adl-post-slider/includes/aps-style.php on line 12
- > PHP Notice
Undefined variable: aps_display_img in wp-content/plugins/adl-post-slider/themes/themea.php on line 15
- > PHP Notice
Undefined variable: nextButton in wp-content/plugins/adl-post-slider/includes/aps-style.php on line 35
- > PHP Notice
Undefined variable: aps_nav_arrow_hover_color in wp-content/plugins/adl-post-slider/includes/aps-style.php on line 65
- > PHP Notice
Undefined variable: random_aps_wrapper_id in wp-content/plugins/adl-post-slider/includes/aps-style.php on line 8
- > PHP Notice
Undefined variable: nextButton in wp-content/plugins/adl-post-slider/includes/aps-style.php on line 63
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: featured post slider, recent post slider, post carousel, popular post slider, responsive post slider...
adl-post-slider/adl-post-slider.php Passed 13 tests
This is the main PHP file of "Post Slider" version 1.6.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
109 characters long description:
This excellent plugin allows you to display your posts with a very beautiful slider without coding knowledge.
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
Success! There were no dangerous files found in this plugin2,330 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 411 | 255 | 1,681 |
CSS | 7 | 87 | 74 | 547 |
JavaScript | 2 | 12 | 12 | 89 |
SVG | 1 | 1 | 0 | 13 |
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.37 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 7.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 1 | 20.00% |
▷ Public methods | 3 | 60.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 40.00% |
Functions | 37 | |
▷ Named functions | 37 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |