89% vie-faq-collapsible-dropdown

Code Review | Vie FAQ Collapsible Dropdown

WordPress plugin Vie FAQ Collapsible Dropdown scored89%from 54 tests.

About plugin

  • Plugin page: vie-faq-collapsib...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2021
  • Latest release: Feb 11, 2021
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: autbite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.57ms] Passed 4 tests

Server-side resources used by Vie FAQ Collapsible Dropdown
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.03 ▼0.96
Dashboard /wp-admin3.32 ▲0.0155.90 ▲4.76
Posts /wp-admin/edit.php3.37 ▲0.0149.51 ▼2.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.86 ▼15.83
Media Library /wp-admin/upload.php3.24 ▲0.0137.02 ▲1.42

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Vie FAQ Collapsible Dropdown
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲3614.72 ▲0.391.92 ▼0.0841.18 ▲1.04
Dashboard /wp-admin2,191 ▲175.62 ▼0.0190.02 ▲0.4743.32 ▲0.62
Posts /wp-admin/edit.php2,102 ▲51.97 ▼0.0436.30 ▼3.8932.38 ▼6.97
Add New Post /wp-admin/post-new.php6,368 ▲4,84127.49 ▲4.46907.45 ▲305.1736.56 ▼15.78
Media Library /wp-admin/upload.php1,399 ▲24.25 ▲0.0898.84 ▼2.6342.17 ▼2.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means 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 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
These attributes need your attention:
  • Contributors: Plugin contributors not specified
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in vie-faq-collapsible-dropdown/assets to your readme.txt
The official readme.txt might help

vie-faq-collapsible-dropdown/index.php 85% from 13 tests

The main file in "Vie FAQ Collapsible Dropdown" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vie-faq-collapsible-dropdown.php" instead of "index.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin16,667 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON20016,445
JavaScript363102
CSS217679
PHP2122341

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/arrow.png0.41KB0.35KB▼ 14.63%