89% accordion-awesome

Code Review | Accordion Plugin by Themes Awesome

WordPress plugin Accordion Plugin by Themes Awesome scored 89% from 54 tests.

About plugin

  • Plugin page: accordion-awesome
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.9
  • WordPress version: 5.9.2
  • First release: Jun 3, 2021
  • Latest release: Mar 17, 2022
  • Number of updates: 12
  • Update frequency: every 24.0 days
  • Top authors: themesawesome (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 198 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼313.52ms] Passed 4 tests

A check of server-side resources used by Accordion Plugin by Themes Awesome
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.5956.35 ▲4.72
Dashboard /wp-admin3.97 ▲0.5641.05 ▲7.60
Posts /wp-admin/edit.php4.20 ▲0.5643.08 ▲4.17
Add New Post /wp-admin/post-new.php6.54 ▼0.4660.79 ▼1,262.31
Media Library /wp-admin/upload.php3.90 ▲0.6026.06 ▼0.67
All Accordions /wp-admin/edit.php?post_type=accordion-awesome3.9733.00
Add New /wp-admin/post-new.php?post_type=accordion-awesome4.2252.69

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 570 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Accordion Plugin by Themes Awesome: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,290 ▲54820.99 ▲5.309.47 ▲3.732.26 ▼0.29
Dashboard /wp-admin3,328 ▲47010.63 ▲4.46192.66 ▲58.89168.46 ▲3.82
Posts /wp-admin/edit.php3,132 ▲4417.81 ▲4.57108.47 ▲43.70139.11 ▼5.40
Add New Post /wp-admin/post-new.php1,840 ▲12919.47 ▼1.23443.02 ▼0.31157.98 ▲5.37
Media Library /wp-admin/upload.php1,941 ▲2438.17 ▲2.64137.92 ▼6.36192.92 ▲4.95
All Accordions /wp-admin/edit.php?post_type=accordion-awesome1,8107.77103.32111.68
Add New /wp-admin/post-new.php?post_type=accordion-awesome3,36613.81256.83169.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 139× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Textarea_Field' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Field/Rich_Text_Field.php:8
    • > PHP Notice
      Undefined variable: errors in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 35
    • > PHP Fatal error
      Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Field/Field.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Boolean_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Widget/Widget.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Container/Widget_Container.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Item_Datastore.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-field-number/core/Number_Field.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/accordion-awesome/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Format_Condition.php:10

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: faq, accordion, vertical accordion

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

"Accordion Plugin by Themes Awesome" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
26 characters long description:
WordPress Accordion Plugin

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin45,568 lines of code in 487 files:
LanguageFilesBlank linesComment linesLines of code
PO File216147831,673

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity8.02
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.04
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes118.03%
▷ Concrete classes12691.97%
▷ Final classes10.79%
▷ Static methods10210.48%
▷ Public methods79481.60%
▷ Protected methods16917.37%
▷ Private methods101.03%
▷ Named functions4533.09%
▷ Anonymous functions9166.91%
▷ Global constants1435.90%
▷ Class constants2564.10%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/arrow_up.png1.03KB0.23KB▼ 77.65%
public/img/down.png2.97KB0.13KB▼ 95.76%
public/img/next.png3.23KB0.42KB▼ 87.06%
public/img/arrow_down.png1.06KB0.24KB▼ 77.47%
public/img/prev.png3.22KB0.41KB▼ 87.13%