74% damedia-giglist

Code Review | DA Media GigList

WordPress plugin DA Media GigList scored74%from 54 tests.

About plugin

  • Plugin page: damedia-giglist
  • Plugin version: 1.8.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Oct 7, 2020
  • Latest release: Mar 24, 2021
  • Number of updates: 54
  • Update frequency: every 3.1 days
  • Top authors: damedialimited (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /840 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.01ms] Passed 4 tests

An overview of server-side resources used by DA Media GigList
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.63 ▲1.42
Dashboard /wp-admin3.31 ▲0.0059.77 ▲5.56
Posts /wp-admin/edit.php3.36 ▲0.0046.10 ▼1.40
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.85 ▼15.35
Media Library /wp-admin/upload.php3.23 ▲0.0036.32 ▼0.70

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for DA Media GigList
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.28 ▼1.101.68 ▼0.4243.38 ▼1.18
Dashboard /wp-admin2,224 ▲185.81 ▲0.95102.08 ▼0.5842.26 ▼3.12
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0638.25 ▲1.3233.86 ▼10.06
Add New Post /wp-admin/post-new.php1,545 ▼422.80 ▼0.61662.52 ▼45.1860.33 ▲7.77
Media Library /wp-admin/upload.php1,397 ▼34.21 ▼0.10110.79 ▲6.5349.38 ▲3.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/damedia-giglist/uninstall.php+8
    Trying to access array offset on value of type bool
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/damedia-giglist/inc/templates/archive-daml_gig.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/damedia-giglist/inc/templates/single-daml_venue.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/damedia-giglist/inc/templates/single-daml_gig.php:2

User-side errors Passed 1 test

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: musician, artist, calendar, event, shows...

damedia-giglist/damedia-giglist.php 92% from 13 tests

The main PHP file in "DA Media GigList" ver. 1.8.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin10,887 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PO File142,8002,9687,243

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity62.50
▷ Minimum class complexity1.00
▷ Maximum class complexity222.00
Average method complexity4.32
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
▷ Static methods11.32%
▷ Public methods76100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions3100.00%
▷ Global constants1100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/img/DAMLLogo.png11.57KB6.28KB▼ 45.75%