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
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼0.51ms] Passed 4 tests
A check of server-side resources used by Accordion Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.47 ▼0.96 |
Dashboard /wp-admin | 3.51 ▲0.21 | 45.73 ▲2.07 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.33 ▲0.24 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 93.14 ▼3.38 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 39.23 ▲7.95 |
Plugin Settings /wp-admin/admin.php?page=accordion-slider-settings | 3.49 | 36.22 |
All Accordions /wp-admin/admin.php?page=accordion-slider | 3.50 | 44.62 |
Add New /wp-admin/admin.php?page=accordion-slider-new | 3.50 | 40.26 |
Documentation /wp-admin/admin.php?page=accordion-slider-documentation | 3.43 | 35.85 |
Add-ons /wp-admin/admin.php?page=accordion-slider-add-ons | 3.50 | 226.99 |
Server storage [IO: ▲2.82MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 126 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_accordionslider_layers |
wp_accordionslider_accordions |
wp_accordionslider_panels |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_bqw-accordion-slider-widget |
db_upgraded |
accordion_slider_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Accordion Slider
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲66 | 14.22 ▼0.51 | 1.69 ▼0.05 | 40.52 ▼2.80 |
Dashboard /wp-admin | 2,230 ▲52 | 5.56 ▼0.17 | 90.70 ▼11.32 | 74.65 ▲34.43 |
Posts /wp-admin/edit.php | 2,138 ▲35 | 1.95 ▼0.01 | 38.12 ▼1.78 | 38.79 ▼1.71 |
Add New Post /wp-admin/post-new.php | 6,398 ▲4,872 | 27.69 ▲4.80 | 807.94 ▲165.91 | 35.08 ▼14.30 |
Media Library /wp-admin/upload.php | 1,441 ▲38 | 4.19 ▲0.02 | 96.22 ▼6.71 | 70.96 ▲27.82 |
Plugin Settings /wp-admin/admin.php?page=accordion-slider-settings | 1,249 | 3.68 | 59.07 | 71.14 |
All Accordions /wp-admin/admin.php?page=accordion-slider | 1,174 | 3.60 | 46.97 | 64.13 |
Add New /wp-admin/admin.php?page=accordion-slider-new | 2,406 | 6.10 | 100.87 | 72.30 |
Documentation /wp-admin/admin.php?page=accordion-slider-documentation | 3,435 | 3.73 | 46.89 | 119.84 |
Add-ons /wp-admin/admin.php?page=accordion-slider-add-ons | 1,122 | 3.70 | 49.55 | 96.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_bqw-accordion-slider-widget
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)
Good news, no errors were detected
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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/accordion-slider/admin/views/panel/panel.php
- > /wp-content/plugins/accordion-slider/admin/views/add-ons/add-on-more-details.php
- 44× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Undefined variable: panel_type in wp-content/plugins/accordion-slider/admin/views/panel/panel.php on line 16
- > PHP Notice
Undefined variable: panel_type in wp-content/plugins/accordion-slider/admin/views/panel/panel.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/accordion-slider/admin/views/panel-editors/html-editor.php:9
- > PHP Fatal error
Uncaught Error: Class 'BQW_AS_Layer_Renderer' not found in wp-content/plugins/accordion-slider/public/class-heading-layer-renderer.php:7
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/accordion-slider/admin/views/accordion-settings/default-panel.php on line 4
- > PHP Notice
Undefined variable: panel_type in wp-content/plugins/accordion-slider/admin/views/panel/panel.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/accordion-slider/admin/views/panel-settings/custom-panel-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/accordion-slider/admin/views/panel-settings/gallery-panel-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accordion-slider/admin/views/panel-editors/background-image-editor.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/accordion-slider/admin/views/accordion/accordion.php:2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 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
9 plugin tags: image accordion, vertical accordion, accordion lightbox, responsive slider, responsive accordion...
accordion-slider/accordion-slider.php Passed 13 tests
The main PHP script in "Accordion Slider" version 1.9.8 is automatically included on every request by WordPress
46 characters long description:
Responsive and touch-enabled accordion slider.
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 detected48,329 lines of code in 88 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 28,338 |
JavaScript | 16 | 2,953 | 2,662 | 9,960 |
PHP | 53 | 1,052 | 2,188 | 5,647 |
CSS | 11 | 516 | 79 | 2,655 |
HTML | 1 | 165 | 0 | 1,628 |
SVG | 1 | 0 | 0 | 40 |
Markdown | 1 | 13 | 0 | 35 |
Sass | 1 | 4 | 0 | 26 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 23.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 3.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 206 | |
▷ Static methods | 29 | 14.08% |
▷ Public methods | 138 | 66.99% |
▷ Protected methods | 55 | 26.70% |
▷ Private methods | 13 | 6.31% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
21 PNG files occupy 0.50MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
documentation/assets/images/export-accordion.png | 50.16KB | 17.13KB | ▼ 65.85% |
documentation/assets/images/panel-buttons.png | 3.84KB | 2.34KB | ▼ 39.08% |
documentation/assets/images/general-settings.png | 50.57KB | 18.82KB | ▼ 62.79% |
documentation/assets/images/background-editor.png | 26.89KB | 11.24KB | ▼ 58.20% |
documentation/assets/images/layers-editor.png | 17.73KB | 7.57KB | ▼ 57.29% |