74% tagged-gallery

Code Review | Tagged Gallery

WordPress plugin Tagged Gallery scored 74% from 54 tests.

About plugin

  • Plugin page: tagged-gallery
  • Plugin version: 0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 22, 2013
  • Latest release: Apr 29, 2013
  • Number of updates: 46
  • Update frequency: every 0.2 days
  • Top authors: bergh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,801 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.96MB] [CPU: ▼49.16ms] Passed 4 tests

Server-side resources used by Tagged Gallery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.438.08 ▼33.87
Dashboard /wp-admin2.05 ▼1.264.90 ▼44.05
Posts /wp-admin/edit.php2.05 ▼1.316.67 ▼38.97
Add New Post /wp-admin/post-new.php2.05 ▼3.845.34 ▼79.73
Media Library /wp-admin/upload.php2.05 ▼1.185.13 ▼28.72

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tagged Gallery
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲21514.01 ▼0.376.31 ▲4.7352.85 ▲12.82
Dashboard /wp-admin2,235 ▲444.99 ▼0.90101.47 ▲3.6035.98 ▼8.73
Posts /wp-admin/edit.php2,115 ▲262.34 ▲0.3437.07 ▲0.2734.05 ▲0.74
Add New Post /wp-admin/post-new.php1,546 ▲1018.45 ▼4.67623.35 ▲28.4133.78 ▼14.13
Media Library /wp-admin/upload.php1,417 ▲294.23 ▲0.0096.03 ▼13.7142.28 ▼7.77

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 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)
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/tagged-gallery/tg.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

tagged-gallery/tg.php 92% from 13 tests

Analyzing the main PHP file in "Tagged Gallery" version 0.7
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tagged-gallery.php" instead of "tg.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
Good job! No executable or dangerous file extensions detected364 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript45713189
PHP33511150
CSS12025

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin