89% downloads-accordion

Code Review | downloads_accordion

WordPress plugin downloads_accordion scored89%from 54 tests.

About plugin

  • Plugin page: downloads-accordion
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 6, 2023
  • Latest release: Oct 7, 2023
  • Number of updates: 2
  • Update frequency: every 5.0 days
  • Top authors: maghsoudi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /39 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by downloads_accordion
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.84 ▲1.92
Dashboard /wp-admin3.31 ▲0.0150.18 ▼2.38
Posts /wp-admin/edit.php3.36 ▲0.0146.83 ▼3.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.08 ▼11.21
Media Library /wp-admin/upload.php3.23 ▲0.0037.82 ▲2.11

Server storage [IO: ▲0.14MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

downloads_accordion: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.37 ▼1.297.78 ▲6.0438.77 ▼5.18
Dashboard /wp-admin2,195 ▲185.65 ▲0.0185.89 ▼8.6940.05 ▼4.08
Posts /wp-admin/edit.php2,100 ▼41.99 ▼0.0035.27 ▼2.0332.80 ▼1.10
Add New Post /wp-admin/post-new.php1,525 ▼1122.86 ▼0.09644.62 ▼28.6153.35 ▼2.08
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.0597.06 ▼15.6043.89 ▼3.22

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

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 no errors were found, this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Screenshots are stored in the /assets directory.), #2 (This is the second screen shot)
  • Tags: The plugin tags were not defined
You can look at the official readme.txt

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

Analyzing the main PHP file in "downloads_accordion" version 1.0.0
95 characters long description:
نمایش فایلهای دانلودی و مجازی ووکامرس درون آکاردئون

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin162 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS10278
PHP1192476
JavaScript1018

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected