90% air-download-attachments

Code Review | AIR Download Attachments

WordPress plugin AIR Download Attachments scored90%from 54 tests.

About plugin

  • Plugin page: air-download-atta...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: Sep 20, 2023
  • Latest release: Nov 26, 2023
  • Number of updates: 4
  • Update frequency: every 16.8 days
  • Top authors: alexodiy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /224 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.01ms] Passed 4 tests

This is a short check of server-side resources used by AIR Download Attachments
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.95 ▼10.08
Dashboard /wp-admin3.32 ▲0.0244.54 ▼2.71
Posts /wp-admin/edit.php3.37 ▲0.0246.41 ▼1.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.29 ▼18.99
Media Library /wp-admin/upload.php3.25 ▲0.0232.44 ▼4.27

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

AIR Download Attachments: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.67 ▲0.321.62 ▼0.5037.40 ▼9.46
Dashboard /wp-admin2,195 ▲175.61 ▼0.0093.72 ▼26.6342.27 ▼1.88
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0540.44 ▼2.6835.47 ▼3.66
Add New Post /wp-admin/post-new.php1,526 ▼022.95 ▼0.24632.05 ▼51.0054.81 ▲7.36
Media Library /wp-admin/upload.php1,397 ▼34.20 ▼0.0096.76 ▼5.7742.60 ▼1.79

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #2 (Download Attachments button) image missing
The official readme.txt might help

air-download-attachments/air-download-attachments.php Passed 13 tests

"AIR Download Attachments" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
115 characters long description:
Adds a "Download All Attachments" button to posts, allowing users to download all attached images as a zip archive.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin177 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1175572
PO File28869
CSS13036

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin