89% accordion-and-accordion-slider

Code Review | Accordion and Accordion Slider

WordPress plugin Accordion and Accordion Slider scored 89% from 54 tests.

About plugin

  • Plugin page: accordion-and-acc...
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 5.9.2
  • First release: Oct 12, 2017
  • Latest release: Feb 11, 2022
  • Number of updates: 33
  • Update frequency: every 48.1 days
  • Top authors: wponlinesupport (81.82%)anoopranawat (21.21%)

Code review

54 tests

User reviews

11 reviews

Install metrics

3,000+ active / 32,456 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Accordion and Accordion Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.87 ▲0.3564.37 ▲11.93
Dashboard /wp-admin3.70 ▲0.2940.17 ▲1.58
Posts /wp-admin/edit.php3.93 ▲0.2951.86 ▲4.88
Add New Post /wp-admin/post-new.php7.17 ▲0.20103.81 ▼1,194.00
Media Library /wp-admin/upload.php3.59 ▲0.2931.16 ▲3.16
Accordion slider /wp-admin/edit.php?post_type=wpos_aac_slider3.7335.69
How It Works /wp-admin/edit.php?post_type=wpos_aac_slider&page=wp-aas-designs3.5849.60
Add Accordion slider /wp-admin/post-new.php?post_type=wpos_aac_slider3.9371.76

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 1 new option
New WordPress options
wpos_anylc_redirect

Browser metrics Passed 4 tests

Accordion and Accordion Slider: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,849 ▲9515.17 ▼0.365.43 ▼1.072.23 ▼0.53
Dashboard /wp-admin2,952 ▲946.22 ▲0.06117.22 ▼21.86155.89 ▼7.40
Posts /wp-admin/edit.php2,733 ▲423.27 ▲0.0263.58 ▼0.84135.15 ▼9.12
Add New Post /wp-admin/post-new.php1,688 ▲2722.25 ▲6.00412.15 ▼26.10152.93 ▼39.05
Media Library /wp-admin/upload.php1,734 ▲425.56 ▲0.03141.06 ▲0.62184.67 ▼49.90
Accordion slider /wp-admin/edit.php?post_type=wpos_aac_slider1,6855.2074.63130.74
How It Works /wp-admin/edit.php?post_type=wpos_aac_slider&page=wp-aas-designs1,5602.6457.69190.92
Add Accordion slider /wp-admin/post-new.php?post_type=wpos_aac_slider2,9475.6494.28192.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • Zombie WordPress options detected upon uninstall: 1 option
    • wpos_anylc_redirect

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes: You can look at the official readme.txt

accordion-and-accordion-slider/accordion-and-accordion-slider.php 92% from 13 tests

The main PHP script in "Accordion and Accordion Slider" version 1.2.3 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)

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
Good job! No executable or dangerous file extensions detected3,621 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP195096771,846
JavaScript467341,635
CSS377140

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity26.80
▷ Minimum class complexity3.00
▷ Maximum class complexity80.00
Average method complexity4.49
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods37
▷ Static methods12.70%
▷ Public methods3594.59%
▷ Protected methods00.00%
▷ Private methods25.41%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants15100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/security-icon.png5.55KB1.43KB▼ 74.21%
assets/images/utility-50.png1.64KB0.82KB▼ 50.30%
assets/images/SlidersPack-50.png6.48KB2.79KB▼ 56.91%
wpos-analytics/assets/images/wpos-logo.png9.04KB3.17KB▼ 64.91%
assets/images/close.png0.84KB0.85KB0.00%