84% gabfire-media-module

Code Review | Gabfire Media Module

WordPress plugin Gabfire Media Module scored84%from 54 tests.

About plugin

  • Plugin page: gabfire-media-module
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.3.1
  • WordPress version: 6.3.1
  • First release: Jan 5, 2015
  • Latest release: Oct 26, 2015
  • Number of updates: 24
  • Update frequency: every 16.0 days
  • Top authors: gabfire (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /5,447 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Gabfire Media Module
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.08 ▼10.29
Dashboard /wp-admin3.31 ▲0.0151.08 ▼1.89
Posts /wp-admin/edit.php3.36 ▲0.0149.72 ▼5.41
Add New Post /wp-admin/post-new.php5.90 ▲0.01100.88 ▼9.31
Media Library /wp-admin/upload.php3.23 ▲0.0037.74 ▲3.71

Server storage [IO: ▲0.06MB] [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: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Gabfire Media Module
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.80 ▼0.571.64 ▼0.9749.35 ▲1.70
Dashboard /wp-admin2,209 ▲214.87 ▼1.14105.73 ▼7.5341.85 ▼3.88
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0134.67 ▼5.0038.38 ▼3.67
Add New Post /wp-admin/post-new.php6,339 ▲4,80226.07 ▲2.69975.87 ▲266.5966.24 ▲8.01
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.10104.64 ▼0.4343.80 ▼7.05

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

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
Everything seems fine, however 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gabfire-media-module/custom-fields.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: video, oembed, post thumbnail, featured image, videojs...

gabfire-media-module/gabfire-media.php 92% from 13 tests

"Gabfire Media Module" version 0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gabfire-media-module.php" instead of "gabfire-media.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin335 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP36350225
CSS26882
SVG10028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions9
▷ Named functions9100.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
PNG images were not found in this plugin