74% arashtad-accordion

Code Review | Arashtad Accordion Plugin

WordPress plugin Arashtad Accordion Plugin scored74%from 54 tests.

About plugin

  • Plugin page: arashtad-accordion
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Sep 27, 2017
  • Latest release: Sep 29, 2017
  • Number of updates: 9
  • Update frequency: every 31.2 days
  • Top authors: arashtad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /747 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼1.54MB] [CPU: ▼52.28ms] Passed 4 tests

Analyzing server-side resources used by Arashtad Accordion Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.45 ▼1.0210.54 ▼33.20
Dashboard /wp-admin2.47 ▼0.8412.18 ▼47.33
Posts /wp-admin/edit.php2.47 ▼0.8912.60 ▼39.45
Add New Post /wp-admin/post-new.php2.47 ▼3.4214.55 ▼89.12
Media Library /wp-admin/upload.php2.47 ▼0.7711.50 ▼28.23

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_araccordion_widget
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Arashtad Accordion Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲12413.41 ▼0.828.10 ▲6.5544.21 ▲4.45
Dashboard /wp-admin2,195 ▲185.62 ▲0.0788.96 ▼9.7241.01 ▼1.21
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0036.39 ▼10.0835.43 ▼3.36
Add New Post /wp-admin/post-new.php1,526 ▼022.71 ▲1.80669.02 ▼61.7167.78 ▲6.87
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.04101.98 ▼15.1242.66 ▼5.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/arashtad-accordion/arashtad-accordion.php+56
    Undefined variable: text_domain
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_araccordion_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/arashtad-accordion/arashtad-accordion.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #0 (COVER IMAGE), #1 (Backend Area), #2 (Widget Backend), #3 (Default Style), #4 (Flat Style), #5 (Nude Style), #6 (BootStrap Style), #7 (Fancy Style)
The official readme.txt might help

arashtad-accordion/arashtad-accordion.php Passed 13 tests

"Arashtad Accordion Plugin" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
66 characters long description:
Responsive accordion widget for WordPress, created by Arashtad.com

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,424 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP116243671
CSS12523454
PO File2112116278
JavaScript141220
HTML1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity86.00
▷ Minimum class complexity86.00
▷ Maximum class complexity86.00
Average method complexity22.25
▷ Minimum method complexity2.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected