89% accordion-block

Code Review | Accordion Block

WordPress plugin Accordion Block scored89%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: 6.3.1
  • 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 /6,027 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.79ms] 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.47 ▲0.0139.26 ▼4.42
Dashboard /wp-admin3.31 ▼0.0345.65 ▼14.70
Posts /wp-admin/edit.php3.36 ▲0.0149.00 ▼0.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0092.84 ▼7.49
Media Library /wp-admin/upload.php3.23 ▲0.0139.02 ▲4.22

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

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

Browser metrics Passed 4 tests

Accordion Block: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲3913.22 ▼1.141.51 ▼0.6539.38 ▼4.49
Dashboard /wp-admin2,206 ▲155.79 ▲0.9398.00 ▼5.4538.12 ▼4.74
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0339.10 ▼2.5334.87 ▲0.05
Add New Post /wp-admin/post-new.php6,354 ▲4,84027.98 ▲10.32909.18 ▲268.1662.33 ▼5.32
Media Library /wp-admin/upload.php1,379 ▼34.28 ▲0.08100.06 ▼1.2643.43 ▲2.64

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare 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

The main file in "Accordion Block" v. 1.0.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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 | 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 detected729 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript37977428
Sass37579148
CSS116122
PHP284931

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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
There were not PNG files found in your plugin