83% accordion-gallery-by-widgetic

Code Review | Accordion Gallery

WordPress plugin Accordion Gallery scored 83% from 54 tests.

About plugin

  • Plugin page: accordion-gallery...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0
  • WordPress version: 6.3.1
  • First release: Jul 8, 2022
  • Latest release: Jul 8, 2022
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: widgetic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 232 total downloads


Plugin footprint 82% from 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.11MB] [CPU: ▲372.51ms] 75% from 4 tests

This is a short check of server-side resources used by Accordion Gallery
The following require your attention
  • Extra CPU: Extra CPU usage should be kept under 200.00ms (currently 372.51ms on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.15712.70 ▲673.31
Dashboard /wp-admin3.41 ▲0.11313.25 ▲260.54
Posts /wp-admin/edit.php3.46 ▲0.10320.54 ▲266.53
Add New Post /wp-admin/post-new.php6.00 ▲0.11377.28 ▲289.67
Media Library /wp-admin/upload.php3.33 ▲0.10725.53 ▲689.10

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Accordion Gallery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /5,009 ▲2,27429.50 ▲15.1298.82 ▲96.9532.14 ▼17.07
Dashboard /wp-admin3,582 ▲1,39412.58 ▲6.68242.15 ▲126.1693.01 ▲44.77
Posts /wp-admin/edit.php3,164 ▲1,07510.23 ▲8.21166.50 ▲128.3541.83 ▲6.54
Add New Post /wp-admin/post-new.php2,691 ▲1,17730.24 ▲12.82831.95 ▲182.5646.03 ▼1.19
Media Library /wp-admin/upload.php1,778 ▲38712.05 ▲7.85231.79 ▲130.6774.31 ▲29.25

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • widgetic/secret
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/accordion-gallery-by-widgetic/dashboard.php:4
    • > PHP Notice
      Undefined variable: widgetMeta in wp-content/plugins/accordion-gallery-by-widgetic/block.php on line 29
    • > PHP Notice
      Undefined variable: blockWidgetId in wp-content/plugins/accordion-gallery-by-widgetic/block.php on line 29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/accordion-gallery-by-widgetic/block.php:110
    • > PHP Notice
      Undefined variable: blockPath in wp-content/plugins/accordion-gallery-by-widgetic/block.php on line 29

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: Too many tags (34 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

accordion-gallery-by-widgetic/index.php 92% from 13 tests

Analyzing the main PHP file in "Accordion Gallery" version 1.0.0
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("accordion-gallery-by-widgetic.php" instead of "index.php")

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
There were no executable files found in this plugin1,315 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions11100.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 6.44MB with 2.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/custom_skin_icon.png8.56KB3.23KB▼ 62.32%
assets/banner-772x250.png12.32KB4.26KB▼ 65.40%
assets/icon.png1.25KB0.41KB▼ 67.40%