83% gif-uploader-wp-grandplugins

Code Review | WP GIF Uploader

WordPress plugin WP GIF Uploader scored 83% from 54 tests.

About plugin

  • Plugin page: gif-uploader-wp-g...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Aug 2, 2021
  • Latest release: Apr 4, 2023
  • Number of updates: 18
  • Update frequency: every 34.2 days
  • Top authors: grandplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 6,114 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▲1.18ms] Passed 4 tests

Analyzing server-side resources used by WP GIF Uploader
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0448.22 ▲8.23
Dashboard /wp-admin3.34 ▲0.0353.02 ▼0.21
Posts /wp-admin/edit.php3.45 ▲0.0952.23 ▼5.90
Add New Post /wp-admin/post-new.php5.92 ▲0.03107.92 ▲17.89
Media Library /wp-admin/upload.php3.26 ▲0.0339.11 ▲2.59
GIF Editor /wp-admin/upload.php?page=gpls-wgr-wp-gif-editor-settings-tab3.2943.40

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 112 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP GIF Uploader
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲4213.62 ▼0.871.96 ▲0.1650.96 ▲2.02
Dashboard /wp-admin2,212 ▲64.84 ▼1.07108.70 ▲1.4941.71 ▲3.36
Posts /wp-admin/edit.php2,098 ▲62.01 ▲0.0242.27 ▲5.8434.97 ▼0.68
Add New Post /wp-admin/post-new.php1,533 ▲223.27 ▲0.02631.97 ▼31.2859.89 ▼3.39
Media Library /wp-admin/upload.php1,391 ▲64.17 ▼0.1299.27 ▼0.7741.81 ▼2.25
GIF Editor /wp-admin/upload.php?page=gpls-wgr-wp-gif-editor-settings-tab1,2744.8981.8444.83

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 take a closer look at the following
  • 45× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Grafika\\DrawingObject\\Polygon' not found in wp-content/plugins/gif-uploader-wp-grandplugins/vendor/kosinix/grafika/src/Grafika/Imagick/DrawingObject/Polygon.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Grafika\\FilterInterface' not found in wp-content/plugins/gif-uploader-wp-grandplugins/vendor/kosinix/grafika/src/Grafika/Gd/Filter/Gamma.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Grafika\\FilterInterface' not found in wp-content/plugins/gif-uploader-wp-grandplugins/vendor/kosinix/grafika/src/Grafika/Gd/Filter/Sharpen.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Grafika\\FilterInterface' not found in wp-content/plugins/gif-uploader-wp-grandplugins/vendor/kosinix/grafika/src/Grafika/Imagick/Filter/Contrast.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Grafika\\FilterInterface' not found in wp-content/plugins/gif-uploader-wp-grandplugins/vendor/kosinix/grafika/src/Grafika/Gd/Filter/Sobel.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Grafika\\FilterInterface' not found in wp-content/plugins/gif-uploader-wp-grandplugins/vendor/kosinix/grafika/src/Grafika/Imagick/Filter/Sharpen.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Image_Editor' not found in wp-content/plugins/gif-uploader-wp-grandplugins/includes/class-gif-editor-manual.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WGR\\GIF_Base' not found in wp-content/plugins/gif-uploader-wp-grandplugins/includes/class-gif-creator.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Grafika\\ImageInterface' not found in wp-content/plugins/gif-uploader-wp-grandplugins/includes/Image.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Grafika\\FilterInterface' not found in wp-content/plugins/gif-uploader-wp-grandplugins/vendor/kosinix/grafika/src/Grafika/Imagick/Filter/Gamma.php:11

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: gif subsizes, gif animation, upload, gif fix, animation...

gif-uploader-wp-grandplugins/gpls-wgr-wp-gif-uploader.php 77% from 13 tests

Analyzing the main PHP file in "WP GIF Uploader" version 1.0.3
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gif-uploader-wp-grandplugins.php" instead of "gpls-wgr-wp-gif-uploader.php")
  • Requires PHP: Required version must match the one declared in readme.txt ("5.4" instead of "5.6")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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 plugin7,223 lines of code in 99 files:
LanguageFilesBlank linesComment linesLines of code
PHP881,7363,7947,134
JSON20080
CSS6056
JavaScript3063

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity13.26
▷ Minimum class complexity1.00
▷ Maximum class complexity95.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces14
Interfaces4
Traits0
Classes69
▷ Abstract classes68.70%
▷ Concrete classes6391.30%
▷ Final classes812.70%
Methods448
▷ Static methods8218.30%
▷ Public methods37884.38%
▷ Protected methods143.12%
▷ Private methods5612.50%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants17
▷ Global constants211.76%
▷ Class constants1588.24%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
core/assets/dist/images/logo-icon-sm.png0.62KB0.72KB0.00%
core/assets/dist/images/logo-icon-lg.png3.56KB2.72KB▼ 23.62%
core/assets/dist/images/full-logo.png6.58KB3.86KB▼ 41.28%
core/assets/dist/images/logo-icon-md.png0.91KB0.96KB0.00%