84% wp-gallery-download-link

Code Review | WP Gallery Download Links

WordPress plugin WP Gallery Download Links scored84%from 54 tests.

About plugin

  • Plugin page: wp-gallery-downlo...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.0
  • WordPress version: 6.3.1
  • First release: Sep 24, 2014
  • Latest release: Dec 12, 2018
  • Number of updates: 6
  • Update frequency: every 256.8 days
  • Top authors: michelkusters (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,318 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by WP Gallery Download Links
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.07 ▼0.09
Dashboard /wp-admin3.33 ▼0.0243.23 ▼17.87
Posts /wp-admin/edit.php3.38 ▲0.0247.20 ▼0.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.21 ▼9.45
Media Library /wp-admin/upload.php3.25 ▲0.0232.86 ▼2.15

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Gallery Download Links
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.111.80 ▼0.0246.62 ▲10.19
Dashboard /wp-admin2,209 ▲214.84 ▼1.01100.49 ▼17.8240.31 ▼6.40
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0139.52 ▲4.9534.85 ▼0.45
Add New Post /wp-admin/post-new.php1,537 ▲2323.33 ▲5.96647.27 ▲26.0949.31 ▼0.11
Media Library /wp-admin/upload.php1,385 ▼04.23 ▲0.0695.02 ▼4.3444.54 ▲1.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-gallery-download-link/wp-gallery-download-links.php:29

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: download, gallery, link, images, image

wp-gallery-download-link/wp-gallery-download-links.php 85% from 13 tests

"WP Gallery Download Links" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 288 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-gallery-download-link.php" instead of "wp-gallery-download-links.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected129 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12871129

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin