90% son-of-gifv

Code Review | Son of GIFV

WordPress plugin Son of GIFV scored90%from 54 tests.

About plugin

  • Plugin page: son-of-gifv
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.7
  • WordPress version: 6.3.1
  • First release: Oct 6, 2016
  • Latest release: Oct 6, 2016
  • Number of updates: 4
  • Update frequency: every 17.0 days
  • Top authors: GunGeekATX (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,083 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.11MB] [CPU: ▼5.98ms] Passed 4 tests

Analyzing server-side resources used by Son of GIFV
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1236.30 ▼1.09
Dashboard /wp-admin3.42 ▲0.0848.85 ▼11.11
Posts /wp-admin/edit.php3.54 ▲0.1846.24 ▼2.42
Add New Post /wp-admin/post-new.php6.01 ▲0.1290.25 ▼9.28
Media Library /wp-admin/upload.php3.34 ▲0.1235.41 ▼0.66
Son of GIFV /wp-admin/options-general.php?page=son-of-gifv3.3131.75

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Son of GIFV
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.27 ▼1.111.74 ▼0.1444.17 ▲4.90
Dashboard /wp-admin2,213 ▲284.85 ▼1.05104.26 ▲0.1338.52 ▼5.53
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0134.33 ▼6.9531.98 ▼5.13
Add New Post /wp-admin/post-new.php1,538 ▼423.21 ▲4.80611.57 ▼8.7451.31 ▼3.69
Media Library /wp-admin/upload.php1,400 ▲124.22 ▼0.05101.28 ▲1.4540.65 ▼1.97
Son of GIFV /wp-admin/options-general.php?page=son-of-gifv7812.0524.5128.36

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 issues were found

Optimizations

Plugin configuration Passed 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
4 plugin tags: gifv, mp4, animated gif, gif

son-of-gifv/son-of-gifv.php Passed 13 tests

The entry point to "Son of GIFV" version 1.0.0 is a PHP file that has certain tags in its header comment area
21 characters long description:
GIF to GIFV converter

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected763 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP17261268707
JavaScript119947
CSS1109

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.67
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods42
▷ Static methods4197.62%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin