89% custom-accordion-block

Code Review | Custom Accordion Block

WordPress plugin Custom Accordion Block scored89%from 54 tests.

About plugin

  • Plugin page: custom-accordion-...
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Apr 17, 2019
  • Latest release: Mar 17, 2021
  • Number of updates: 10
  • Update frequency: every 70.0 days
  • Top authors: Mansi Trivedi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,449 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.56ms] Passed 4 tests

This is a short check of server-side resources used by Custom Accordion Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.73 ▼5.61
Dashboard /wp-admin3.31 ▲0.0149.22 ▼5.30
Posts /wp-admin/edit.php3.36 ▲0.0150.06 ▲4.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.22 ▲3.88
Media Library /wp-admin/upload.php3.24 ▲0.0141.27 ▲4.81

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Custom Accordion Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲13613.40 ▼1.168.71 ▲6.9445.38 ▲1.98
Dashboard /wp-admin2,198 ▲215.62 ▲0.0694.93 ▼10.7643.14 ▲0.25
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0440.65 ▲4.9435.04 ▼1.90
Add New Post /wp-admin/post-new.php6,364 ▲4,83627.69 ▲4.70958.46 ▲278.4977.72 ▲12.64
Media Library /wp-admin/upload.php1,403 ▲34.20 ▲0.10100.69 ▼5.7945.79 ▲0.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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 93% from 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: gutenberg custom block, gutenberg block, gutenberg custom accordion, custom faq, faq

custom-accordion-block/custom-accordion-block.php 85% from 13 tests

The primary PHP file in "Custom Accordion Block" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 177 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,031 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2168337991
PHP193823
CSS20017

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin