90% gif-master

Code Review | GIF Master - Awesome GIFs with Giphy and Tenor

WordPress plugin GIF Master - Awesome GIFs with Giphy and Tenor scored90%from 54 tests.

About plugin

  • Plugin page: gif-master
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 27, 2021
  • Latest release: Mar 31, 2023
  • Number of updates: 6
  • Update frequency: every 117.2 days
  • Top authors: deepakkite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /6,369 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.21ms] Passed 4 tests

This is a short check of server-side resources used by GIF Master - Awesome GIFs with Giphy and Tenor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.52 ▲3.87
Dashboard /wp-admin3.33 ▲0.0249.93 ▼0.36
Posts /wp-admin/edit.php3.38 ▲0.0248.68 ▼3.51
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.84 ▼20.29
Media Library /wp-admin/upload.php3.25 ▲0.0240.10 ▲3.32
GIF Master /wp-admin/options-general.php?page=gifm3.2233.69

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for GIF Master - Awesome GIFs with Giphy and Tenor
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲3714.21 ▼0.191.66 ▼0.0140.57 ▼7.63
Dashboard /wp-admin2,207 ▲335.60 ▲0.0290.29 ▼1.7536.74 ▼10.61
Posts /wp-admin/edit.php2,109 ▲61.99 ▲0.0441.05 ▲3.9636.11 ▼1.78
Add New Post /wp-admin/post-new.php1,534 ▼123.14 ▲0.24684.51 ▼12.6254.17 ▲2.60
Media Library /wp-admin/upload.php1,409 ▲94.19 ▲0.07109.80 ▲6.6947.07 ▲1.05
GIF Master /wp-admin/options-general.php?page=gifm8322.0028.6228.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: gif, animated images, tenor gifs, tenor, free gifs...

gif-master/gif-master.php 92% from 13 tests

Analyzing the main PHP file in "GIF Master - Awesome GIFs with Giphy and Tenor" version 1.0.1
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,571 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript9168198863
CSS17616518
PHP1912113
HTML17277

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
popup/img/giphy_logo_txt.png2.27KB1.43KB▼ 36.93%
popup/img/128x128_vertical.png1.53KB0.50KB▼ 67.09%
popup/img/giphy_icon_38.png1.67KB1.17KB▼ 29.92%
gif-icon.png0.71KB0.70KB▼ 1.78%
popup/img/PB_tenor_logo_white_vertical.png30.84KB30.98KB0.00%