10% responsive-media-gallery

Code Review | Responsive Media Gallery

WordPress plugin Responsive Media Gallery scored10%from 54 tests.

About plugin

  • Plugin page: responsive-media-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8
  • WordPress version: 6.3.1
  • First release: Jan 13, 2014
  • Latest release: Mar 31, 2014
  • Number of updates: 8
  • Update frequency: every 9.6 days
  • Top authors: DigitalCourt (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,974 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/responsive-media-gallery/responsive-media-gallery.php+259
    Trying to access array offset on value of type bool

Server metrics [RAM: ▲0.07MB] [CPU: ▲1.02ms] Passed 4 tests

Analyzing server-side resources used by Responsive Media Gallery
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.04 ▲2.32
Dashboard /wp-admin3.37 ▲0.0748.47 ▼2.94
Posts /wp-admin/edit.php3.42 ▲0.0749.41 ▲2.88
Add New Post /wp-admin/post-new.php5.95 ▲0.0796.84 ▲1.81
Media Library /wp-admin/upload.php3.30 ▲0.0737.52 ▲3.14

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
igr_options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Responsive Media Gallery: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲15613.71 ▼0.606.55 ▲4.7136.67 ▼14.20
Dashboard /wp-admin2,206 ▲185.87 ▲0.98107.74 ▲6.9739.42 ▲0.77
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0440.63 ▲2.1434.53 ▼2.27
Add New Post /wp-admin/post-new.php1,539 ▲523.06 ▼0.25648.17 ▼31.9154.50 ▼2.62
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.0194.14 ▼9.3139.49 ▼5.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-media-gallery/responsive-media-gallery.php:25

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: There were no tags found
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

responsive-media-gallery/responsive-media-gallery.php Passed 13 tests

The main PHP script in "Responsive Media Gallery" version 1.0 is automatically included on every request by WordPress
100 characters long description:
Replace the default Wordpress gallery with a responsive and touch friendly Galleria based slideshow.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected6,259 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript111,7651,1735,078
CSS382574
PHP112721499
HTML1133108

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions13
▷ Named functions13100.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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/colorpicker_overlay.png10.11KB8.24KB▼ 18.50%
images/custom_hex.png0.55KB0.39KB▼ 28.11%
images/select2.png0.51KB0.33KB▼ 34.94%
images/custom_background.png1.87KB2.12KB0.00%
images/custom_hsb_b.png1.07KB0.82KB▼ 23.61%