10% mobli-image-gallery-widget

Code Review | Mobli Image Gallery Widget

WordPress plugin Mobli Image Gallery Widget scored10%from 54 tests.

About plugin

  • Plugin page: mobli-image-galle...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.9.1
  • WordPress version: 6.3.1
  • First release: Apr 16, 2013
  • Latest release: Jun 4, 2014
  • Number of updates: 8
  • Update frequency: every 51.8 days
  • Top authors: talyam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,374 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/mobli-image-gallery-widget/mobli-image-gallery-widget.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; Mobli_Image_Gallery_Widget has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.14ms] Passed 4 tests

This is a short check of server-side resources used by Mobli Image Gallery Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.59 ▼34.33
Dashboard /wp-admin2.10 ▼1.215.30 ▼39.45
Posts /wp-admin/edit.php2.10 ▼1.265.12 ▼41.87
Add New Post /wp-admin/post-new.php2.10 ▼3.796.48 ▼96.91
Media Library /wp-admin/upload.php2.10 ▼1.135.27 ▼31.97

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Mobli Image Gallery Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲6814.35 ▼0.071.79 ▲0.1242.84 ▲4.97
Dashboard /wp-admin2,195 ▲205.62 ▼0.0290.99 ▼5.3744.24 ▼0.66
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0242.14 ▲4.3937.32 ▲0.22
Add New Post /wp-admin/post-new.php1,526 ▼223.40 ▲0.36594.54 ▼68.9251.25 ▼2.80
Media Library /wp-admin/upload.php1,400 ▼04.17 ▼0.0497.05 ▼16.8540.74 ▼4.39

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
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/mobli-image-gallery-widget/mobli-image-gallery-widget.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; Mobli_Image_Gallery_Widget has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_mobli-gallery
    • db_upgraded

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobli-image-gallery-widget/mobli-image-gallery-widget.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #0 is missing in mobli-image-gallery-widget/assets to your readme.txt
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Screenshot #1 ([My Mobli Stream Example](http://mobdmin.yampolsky.org/wp/screenshot.png)) image missing
Please take inspiration from this readme.txt

mobli-image-gallery-widget/mobli-image-gallery-widget.php Passed 13 tests

The primary PHP file in "Mobli Image Gallery Widget" version 1.0.1 is used by WordPress to initiate all plugin functionality
115 characters long description:
Show your latest Mobli images in a widget. Images are linked to Mobli.com, where all your Mobli images are visible.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected82 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1273682

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected