89% accordion-and-accordion-slider

Code Review | Accordion and Accordion Slider

WordPress plugin Accordion and Accordion Slider scored89%from 54 tests.

About plugin

  • Plugin page: accordion-and-acc...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2017
  • Latest release: Nov 27, 2023
  • Number of updates: 39
  • Update frequency: every 57.4 days
  • Top authors: wponlinesupport (84.62%)anoopranawat (17.95%)

Code review

54 tests

User reviews

13 reviews

Install metrics

3,000+ active /44,801 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.30MB] [CPU: ▼2.74ms] Passed 4 tests

This is a short check of server-side resources used by Accordion and Accordion Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3136.36 ▼4.67
Dashboard /wp-admin3.60 ▲0.2648.45 ▼13.35
Posts /wp-admin/edit.php3.72 ▲0.3648.92 ▲1.87
Add New Post /wp-admin/post-new.php6.21 ▲0.3291.93 ▲5.20
Media Library /wp-admin/upload.php3.53 ▲0.3037.67 ▲5.84

Server storage [IO: ▲0.32MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
db_upgraded
wpos_anylc_site_uid
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
wpos_anylc_redirect

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accordion and Accordion Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,584 ▼1,17810.63 ▼3.641.89 ▲0.0117.47 ▼27.58
Dashboard /wp-admin2,229 ▲495.58 ▼0.0699.41 ▼0.7250.86 ▲3.69
Posts /wp-admin/edit.php2,134 ▲312.20 ▲0.2740.33 ▼4.8934.80 ▼1.15
Add New Post /wp-admin/post-new.php1,554 ▲2023.62 ▼1.62638.42 ▲26.4852.19 ▼12.34
Media Library /wp-admin/upload.php1,430 ▲304.22 ▲0.0497.66 ▼0.0538.86 ▼4.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • can_compress_scripts
    • wpos_anylc_site_uid
    • widget_recent-posts
    • theysaidso_admin_options
    • wpos_anylc_redirect
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention: You can take inspiration from this readme.txt

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

The main PHP file in "Accordion and Accordion Slider" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin3,674 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP195597191,895
JavaScript470341,639
CSS375140

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity29.40
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity4.74
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods38
▷ Static methods12.63%
▷ Public methods3694.74%
▷ Protected methods00.00%
▷ Private methods25.26%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants13100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/popup-anything-icon.png6.69KB2.25KB▼ 66.36%
wpos-analytics/assets/images/wpos-logo.png9.04KB3.17KB▼ 64.91%
wpos-analytics/assets/images/icon.png3.59KB0.21KB▼ 94.04%
assets/images/security-icon.png5.55KB1.43KB▼ 74.21%
assets/images/SlidersPack-50.png6.48KB2.79KB▼ 56.91%