84% gif-controller

Code Review | Gif Controller

WordPress plugin Gif Controller scored84%from 54 tests.

About plugin

  • Plugin page: gif-controller
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.1+
  • WordPress version: 6.3.1
  • First release: Jul 28, 2018
  • Latest release: Jul 28, 2018
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: mostafadeveloper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /690 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Gif Controller
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.65 ▲2.17
Dashboard /wp-admin3.33 ▲0.0350.63 ▼5.61
Posts /wp-admin/edit.php3.38 ▲0.0352.79 ▼1.12
Add New Post /wp-admin/post-new.php5.91 ▲0.0397.67 ▼6.29
Media Library /wp-admin/upload.php3.25 ▲0.0333.87 ▼6.21

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Gif Controller: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲12613.42 ▼0.938.34 ▲6.6538.92 ▼3.31
Dashboard /wp-admin2,214 ▲435.62 ▲0.0290.40 ▲1.3842.95 ▼1.64
Posts /wp-admin/edit.php2,116 ▲161.99 ▼0.0440.26 ▼1.1235.14 ▼0.39
Add New Post /wp-admin/post-new.php1,539 ▲423.09 ▲5.01746.05 ▲59.2351.99 ▼18.66
Media Library /wp-admin/upload.php1,416 ▲164.17 ▲0.0395.95 ▼14.4444.60 ▼4.87

Uninstaller [IO: ▲0.00MB] [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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at 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/gif-controller/gif-controller.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Tested up to: Version format is invalid
Please take inspiration from this readme.txt

gif-controller/gif-controller.php Passed 13 tests

The main PHP script in "Gif Controller" version 1.0 is automatically included on every request by WordPress
94 characters long description:
The GIF Controller is a simple and lightweight plugin for playing and stopping the GIF images.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin461 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript15317311
PHP192592
CSS18058

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin