89% hot-accordion

Code Review | Hot Accordion

WordPress plugin Hot Accordion scored89%from 54 tests.

About plugin

  • Plugin page: hot-accordion
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jul 25, 2020
  • Latest release: Aug 23, 2023
  • Number of updates: 18
  • Update frequency: every 62.4 days
  • Top authors: hotwptemplates (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,385 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.26MB] [CPU: ▼8.03ms] Passed 4 tests

Analyzing server-side resources used by Hot Accordion
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.09 ▲0.42
Dashboard /wp-admin3.32 ▲0.0143.31 ▼1.07
Posts /wp-admin/edit.php3.37 ▲0.0146.85 ▼4.07
Add New Post /wp-admin/post-new.php4.81 ▼1.0871.57 ▼27.39
Media Library /wp-admin/upload.php3.24 ▲0.0139.30 ▲8.37

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Hot Accordion: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲14813.62 ▼0.705.75 ▲3.2641.73 ▼1.50
Dashboard /wp-admin2,209 ▲215.85 ▲0.9798.43 ▼14.8740.91 ▲0.93
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0539.34 ▼2.9434.20 ▼3.35
Add New Post /wp-admin/post-new.php6,589 ▲5,07529.20 ▲11.67921.10 ▲312.5639.29 ▼9.87
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.0493.00 ▼4.9040.50 ▼1.49

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === hot-accordion === )
You can look at the official readme.txt

hot-accordion/hot_accordion.php 92% from 13 tests

Analyzing the main PHP file in "Hot Accordion" version 1.1
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("hot-accordion.php" instead of "hot_accordion.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 detected5,499 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JSON3005,137
JavaScript53461232
PO File1171761
PHP1121343
CSS26226

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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