79% accordion-slider-lite

Code Review | Accordion Slider Lite

WordPress plugin Accordion Slider Lite scored 79% from 54 tests.

About plugin

  • Plugin page: accordion-slider-...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.0
  • WordPress version: 6.3.1
  • First release: Dec 4, 2014
  • Latest release: Aug 20, 2022
  • Number of updates: 15
  • Update frequency: every 187.7 days
  • Top authors: bqworks (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

700+ active / 27,071 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.37ms] Passed 4 tests

Server-side resources used by Accordion Slider Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.45 ▼8.02
Dashboard /wp-admin3.35 ▲0.0545.66 ▼7.04
Posts /wp-admin/edit.php3.40 ▲0.0550.32 ▲3.11
Add New Post /wp-admin/post-new.php5.93 ▲0.0581.50 ▼13.52
Media Library /wp-admin/upload.php3.28 ▲0.0536.69 ▲5.73
All Accordions /wp-admin/admin.php?page=accordion-slider-lite3.3137.27
Plugin Settings /wp-admin/admin.php?page=accordion-slider-lite-settings3.3037.16
Add New /wp-admin/admin.php?page=accordion-slider-lite-new3.3338.94
Upgrade /wp-admin/admin.php?page=accordion-slider-lite-ugrade3.2937.70

Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: 3 new tables, 8 new options
New tables
wp_accordionslider_layers
wp_accordionslider_panels
wp_accordionslider_accordions
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
widget_bqw-accordion-slider-lite-widget
widget_theysaidso_widget
accordion_slider_version
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Accordion Slider Lite
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲10513.24 ▼1.144.70 ▲2.9340.91 ▼4.08
Dashboard /wp-admin2,240 ▲555.00 ▲0.14100.85 ▼15.1967.60 ▲19.87
Posts /wp-admin/edit.php2,120 ▲311.98 ▼0.0438.31 ▲0.7736.56 ▲2.87
Add New Post /wp-admin/post-new.php1,696 ▲18222.34 ▲4.64758.88 ▲69.9159.20 ▼8.83
Media Library /wp-admin/upload.php1,422 ▲374.23 ▼0.0995.29 ▼4.6076.78 ▲33.72
All Accordions /wp-admin/admin.php?page=accordion-slider-lite1,0493.1739.2459.72
Plugin Settings /wp-admin/admin.php?page=accordion-slider-lite-settings1,1253.1539.5555.34
Add New /wp-admin/admin.php?page=accordion-slider-lite-new1,6243.2244.3755.86
Upgrade /wp-admin/admin.php?page=accordion-slider-lite-ugrade1,0343.1538.4260.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_bqw-accordion-slider-lite-widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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 action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/accordion-slider-lite/admin/views/preview-window.php
  • 9× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/accordion-slider-lite/admin/views/panel.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/accordion-slider-lite/admin/views/accordions.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/accordion-slider-lite/includes/class-accordion-slider-widget.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/accordion-slider-lite/admin/views/accordions-row.php:2
    • > PHP Notice
      Undefined variable: accordion_output in wp-content/plugins/accordion-slider-lite/admin/views/preview-window.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/accordion-slider-lite/admin/views/upgrade.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/accordion-slider-lite/admin/views/plugin-settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/accordion-slider-lite/admin/views/accordion.php:2
    • > PHP Notice
      Undefined variable: panel_image in wp-content/plugins/accordion-slider-lite/admin/views/panel.php on line 6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: image accordion, responsive slider, accordion plugin, accordion slider, responsive accordion

accordion-slider-lite/accordion-slider-lite.php Passed 13 tests

The entry point to "Accordion Slider Lite" version 1.5.1 is a PHP file that has certain tags in its header comment area
64 characters long description:
Responsive and touch-enabled accordion slider. The lite version.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin4,177 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript46547872,124
PHP193509231,533
CSS410629520

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity18.56
▷ Minimum class complexity1.00
▷ Maximum class complexity51.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods76
▷ Static methods1418.42%
▷ Public methods5977.63%
▷ Protected methods911.84%
▷ Private methods810.53%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/css/images/all-buttons.png1.25KB0.89KB▼ 28.43%
admin/assets/css/images/as-icon.png0.11KB0.11KB▼ 3.45%