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
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.8
  • WordPress version: 5.9.2
  • First release: Dec 4, 2014
  • Latest release: Jun 9, 2021
  • Number of updates: 14
  • Update frequency: every 169.9 days
  • Top authors: bqworks (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active / 25,492 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.27MB] [CPU: ▼343.92ms] Passed 4 tests

An overview of server-side resources used by Accordion Slider Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.2554.04 ▲0.94
Dashboard /wp-admin3.71 ▲0.2933.83 ▲0.07
Posts /wp-admin/edit.php3.93 ▲0.2940.46 ▲0.40
Add New Post /wp-admin/post-new.php7.23 ▲0.2693.23 ▼1,377.08
Media Library /wp-admin/upload.php3.65 ▲0.3527.75 ▲4.13
Plugin Settings /wp-admin/admin.php?page=accordion-slider-lite-settings3.6628.78
All Accordions /wp-admin/admin.php?page=accordion-slider-lite3.6628.91
Add New /wp-admin/admin.php?page=accordion-slider-lite-new3.6832.10
Upgrade /wp-admin/admin.php?page=accordion-slider-lite-ugrade3.6629.53

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 33 new files
Database: 3 new tables, 2 new options
New tables
wp_accordionslider_accordions
wp_accordionslider_panels
wp_accordionslider_layers
New WordPress options
widget_bqw-accordion-slider-lite-widget
accordion_slider_version

Browser metrics Passed 4 tests

Accordion Slider Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,846 ▲10215.87 ▲0.347.30 ▲1.512.74 ▲0.51
Dashboard /wp-admin2,935 ▲776.17 ▼0.01117.99 ▼17.96169.78 ▲9.23
Posts /wp-admin/edit.php2,733 ▲423.10 ▼0.1364.46 ▲0.71142.35 ▼1.82
Add New Post /wp-admin/post-new.php1,788 ▲12716.94 ▼4.73427.38 ▼11.75211.55 ▲52.99
Media Library /wp-admin/upload.php1,741 ▲435.55 ▲0.02129.70 ▼22.15207.97 ▲18.87
Plugin Settings /wp-admin/admin.php?page=accordion-slider-lite-settings1,4154.4677.17147.78
All Accordions /wp-admin/admin.php?page=accordion-slider-lite1,3704.4671.08119.48
Add New /wp-admin/admin.php?page=accordion-slider-lite-new2,2344.79110.13197.96
Upgrade /wp-admin/admin.php?page=accordion-slider-lite-ugrade1,3424.5268.72118.76

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_bqw-accordion-slider-lite-widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/accordion-slider-lite/admin/views/preview-window.php
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/accordion-slider-lite/admin/views/accordion.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/accordion-slider-lite/admin/views/panel.php:7
    • > 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: 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 _e() in wp-content/plugins/accordion-slider-lite/admin/views/plugin-settings.php:2
    • > 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 wp_create_nonce() in wp-content/plugins/accordion-slider-lite/admin/views/accordions-row.php:2
    • > PHP Notice
      Undefined variable: panel_image in wp-content/plugins/accordion-slider-lite/admin/views/panel.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/accordion-slider-lite/admin/views/accordions.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
5 plugin tags: accordion plugin, responsive accordion, image accordion, responsive slider, accordion slider

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

The main PHP script in "Accordion Slider Lite" version 1.5 is automatically included on every request by WordPress
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin4,499 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript46547872,124
PHP193509231,533
CSS410429514
PO File1116122328

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity3.01
▷ 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%