99% accordion-block

Code Review | Accordion Block

WordPress plugin Accordion Block scored 99% from 54 tests.

About plugin

  • Plugin page: accordion-block
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.0.2
  • WordPress version: 5.9.2
  • First release: Dec 23, 2018
  • Latest release: Dec 24, 2018
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: asphaltthemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 3,487 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Analyzing server-side resources used by Accordion Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0256.44 ▲4.24
Dashboard /wp-admin3.42 ▲0.0132.06 ▼8.29
Posts /wp-admin/edit.php3.65 ▲0.0138.30 ▲0.22
Add New Post /wp-admin/post-new.php6.89 ▼0.08103.38 ▼1,187.99
Media Library /wp-admin/upload.php3.30 ▲0.0124.42 ▼2.27

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Accordion Block
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,820 ▲6615.89 ▼0.175.75 ▼1.212.42 ▼0.32
Dashboard /wp-admin2,895 ▲346.14 ▼0.11117.06 ▼21.25156.01 ▼6.41
Posts /wp-admin/edit.php2,694 ▲93.23 ▼0.0066.01 ▲0.56140.32 ▼3.20
Add New Post /wp-admin/post-new.php1,671 ▼10216.46 ▼5.24421.48 ▼105.47162.35 ▼4.13
Media Library /wp-admin/upload.php1,698 ▼05.45 ▼0.07139.63 ▼13.19188.11 ▼0.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention: Please take inspiration from this readme.txt

accordion-block/plugin.php 92% from 13 tests

"Accordion Block" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("accordion-block.php" instead of "plugin.php")

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 detected729 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37977428
Sass37579148
CSS116122
PHP284931

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Constants0
▷ Global constants00.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
No PNG files were detected