Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.41MB] [CPU: ▲1.00ms] Passed 4 tests
Analyzing server-side resources used by Responsive Accordion Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.84 ▲0.37 | 37.40 ▼1.84 |
Dashboard /wp-admin | 3.75 ▲0.44 | 49.07 ▲3.15 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 52.08 ▲3.55 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 98.22 ▼0.85 |
Media Library /wp-admin/upload.php | 3.61 ▲0.38 | 38.32 ▲3.53 |
All Accordions /wp-admin/edit.php?post_type=ras-accordion-slider | 3.66 | 38.51 |
Help /wp-admin/edit.php?post_type=ras-accordion-slider&page=ras-premium | 3.60 | 33.24 |
Add New /wp-admin/post-new.php?post_type=ras-accordion-slider | 3.73 | 69.08 |
Server storage [IO: ▲4.54MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 112 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
ras-slider-images-default |
widget_recent-posts |
resp-accordion-slider-installDate |
db_upgraded |
theysaidso_admin_options |
resp-accordion-slider-v |
resp-accordion-slider-type |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Responsive Accordion Slider
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲124 | 15.11 ▲0.99 | 1.48 ▼0.28 | 31.20 ▼13.68 |
Dashboard /wp-admin | 2,291 ▲114 | 6.22 ▲0.59 | 134.72 ▲43.75 | 44.55 ▲4.29 |
Posts /wp-admin/edit.php | 2,177 ▲77 | 3.80 ▲1.84 | 87.15 ▲50.54 | 37.26 ▲4.77 |
Add New Post /wp-admin/post-new.php | 1,600 ▲62 | 24.71 ▼0.27 | 639.40 ▲23.90 | 32.24 ▼31.23 |
Media Library /wp-admin/upload.php | 1,596 ▲193 | 5.76 ▲1.48 | 138.44 ▲38.10 | 40.20 ▼2.04 |
All Accordions /wp-admin/edit.php?post_type=ras-accordion-slider | 1,149 | 3.72 | 82.24 | 29.63 |
Help /wp-admin/edit.php?post_type=ras-accordion-slider&page=ras-premium | 1,668 | 10.33 | 294.46 | 89.96 |
Add New /wp-admin/post-new.php?post_type=ras-accordion-slider | 4,027 | 6.95 | 180.96 | 128.72 |
Uninstaller [IO: ▲1.28MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- resp-accordion-slider-type
- db_upgraded
- resp-accordion-slider-v
- widget_recent-comments
- resp-accordion-slider-installDate
- can_compress_scripts
- theysaidso_admin_options
- ras-slider-images-default
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
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-1/index.php
- > /wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-2/index.php
- 92× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: PostId in wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-2/index.php on line 180
- > PHP Notice
Undefined variable: settings in wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-2/index.php on line 12
- > PHP Notice
Undefined variable: settings in wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-2/index.php on line 8
- > PHP Notice
Undefined variable: settings in wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-2/index.php on line 13
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-1/index.php on line 119
- > PHP Notice
Undefined variable: images in wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-2/index.php on line 119
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-accordion-slider/includes/admin/class-ras-admin.php:15
- > PHP Notice
Undefined variable: PostId in wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-2/index.php on line 116
- > PHP Notice
Undefined variable: settings in wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-2/index.php on line 11
- > PHP Notice
Undefined variable: settings in wp-content/plugins/responsive-accordion-slider/includes/public/designs/design-2/index.php on line 7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: horizontal accordion, responsive accordion, responsive slider, accordion carousel, accordion slider...
responsive-accordion-slider/accordion-slider.php 92% from 13 tests
"Responsive Accordion Slider" version 1.1.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("responsive-accordion-slider.php" instead of "accordion-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin28,767 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 16 | 3,124 | 108 | 14,443 |
SVG | 6 | 0 | 12 | 5,553 |
JavaScript | 13 | 553 | 388 | 2,539 |
PHP | 17 | 570 | 479 | 2,459 |
Sass | 16 | 43 | 34 | 1,903 |
LESS | 16 | 41 | 51 | 1,870 |
PHP code Passed 2 tests
This is a very shot 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.35 |
Average class complexity | 21.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 4.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 64 | |
▷ Static methods | 8 | 12.50% |
▷ Public methods | 49 | 76.56% |
▷ Protected methods | 3 | 4.69% |
▷ Private methods | 12 | 18.75% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/accordion-title-logo.png | 13.90KB | 5.99KB | ▼ 56.92% |
assets/images/pro-tag.png | 2.84KB | 1.01KB | ▼ 64.49% |
assets/images/accordion-icon.png | 10.56KB | 4.24KB | ▼ 59.86% |