78% vm2x-giphy-tm

Code Review | VM2X-GIPHY-TM

WordPress plugin VM2X-GIPHY-TM scored78%from 54 tests.

About plugin

  • Plugin page: vm2x-giphy-tm
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.0
  • WordPress version: 6.3.1
  • First release: Jun 7, 2022
  • Latest release: Jun 7, 2022
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: vm2xkevin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /877 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.58MB] [CPU: ▼10.12ms] Passed 4 tests

Server-side resources used by VM2X-GIPHY-TM
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.73 ▼0.27
Dashboard /wp-admin3.35 ▲0.0550.14 ▼0.18
Posts /wp-admin/edit.php3.40 ▲0.0546.26 ▼6.82
Add New Post /wp-admin/post-new.php3.43 ▼2.4570.37 ▼33.20
Media Library /wp-admin/upload.php3.27 ▲0.0546.63 ▲14.43

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

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

Browser metrics Passed 4 tests

A check of browser resources used by VM2X-GIPHY-TM
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲7913.28 ▼1.001.75 ▼0.3843.04 ▼4.15
Dashboard /wp-admin2,253 ▲655.85 ▲0.01101.40 ▼1.4340.63 ▼4.07
Posts /wp-admin/edit.php2,151 ▲592.09 ▲0.0336.34 ▼4.1231.82 ▼3.18
Add New Post /wp-admin/post-new.php3,152 ▲1,6387.39 ▼16.11182.36 ▼424.8568.34 ▲20.22
Media Library /wp-admin/upload.php1,444 ▲594.17 ▼0.03100.85 ▼0.6343.36 ▼1.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/vm2x-giphy-tm/assets/theme/gif-iframe.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vm2x-giphy-tm/giphy-tm.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: emojis, stickers, giphy, images, gifs

vm2x-giphy-tm/giphy-tm.php 85% from 13 tests

The main file in "VM2X-GIPHY-TM" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 453 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("vm2x-giphy-tm.php" instead of "giphy-tm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected340 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP28349225
JavaScript2443688
CSS16027

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/js/gif.png0.60KB0.47KB▼ 22.94%