84% media-tags-gallery

Code Review | Media Tagz Gallery

WordPress plugin Media Tagz Gallery scored84%from 54 tests.

About plugin

  • Plugin page: media-tags-gallery
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2016
  • Latest release: Jul 11, 2016
  • Number of updates: 13
  • Update frequency: every 2.9 days
  • Top authors: daniel@punchupproductions.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,004 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼8.62ms] Passed 4 tests

This is a short check of server-side resources used by Media Tagz Gallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0739.61 ▼5.03
Dashboard /wp-admin3.36 ▲0.0147.10 ▼14.52
Posts /wp-admin/edit.php3.41 ▲0.0549.15 ▼3.67
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.67 ▼11.25
Media Library /wp-admin/upload.php3.29 ▲0.0535.77 ▼2.72

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Media Tagz Gallery
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲12113.37 ▼1.0210.55 ▲8.7552.35 ▲11.59
Dashboard /wp-admin2,198 ▲185.62 ▲0.0993.09 ▼2.2039.18 ▼1.06
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0940.06 ▲1.0635.71 ▲2.21
Add New Post /wp-admin/post-new.php1,535 ▲718.36 ▼4.69623.49 ▼24.3574.66 ▲20.17
Media Library /wp-admin/upload.php1,397 ▲34.22 ▲0.06101.06 ▲0.5645.58 ▲3.08

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/media-tags-gallery/media-tagz-gallery.php

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: gallery, photos, tag, tagz, photography...

media-tags-gallery/media-tagz-gallery.php 92% from 13 tests

Analyzing the main PHP file in "Media Tagz Gallery" version 1.1
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("media-tags-gallery.php" instead of "media-tagz-gallery.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected770 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1215447
PHP13480276
JavaScript34247

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin