78% wfs-googleplay-thumbnail

Code Review | WFS GooglePlay Thumbnail

WordPress plugin WFS GooglePlay Thumbnail scored78%from 54 tests.

About plugin

  • Plugin page: wfs-googleplay-th...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 6.3.1
  • First release: Dec 23, 2013
  • Latest release: Dec 25, 2013
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: webfacescript (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /780 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.01MB] [CPU: ▼3.31ms] Passed 4 tests

An overview of server-side resources used by WFS GooglePlay Thumbnail
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.79 ▼1.74
Dashboard /wp-admin3.33 ▼0.0246.91 ▼13.97
Posts /wp-admin/edit.php3.38 ▲0.0249.37 ▲1.12
Add New Post /wp-admin/post-new.php5.91 ▲0.02101.95 ▲1.34
Media Library /wp-admin/upload.php3.25 ▲0.0234.96 ▲3.14

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
widget_wfs_googleplay_thumbnail_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WFS GooglePlay Thumbnail
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5514.48 ▲0.101.71 ▼0.2845.53 ▲5.44
Dashboard /wp-admin2,235 ▲475.80 ▼0.10110.20 ▲5.0876.92 ▲39.82
Posts /wp-admin/edit.php2,112 ▲232.00 ▼0.0132.71 ▼6.9332.27 ▼3.43
Add New Post /wp-admin/post-new.php1,689 ▲16122.01 ▲3.72664.09 ▲59.9740.85 ▼21.16
Media Library /wp-admin/upload.php1,411 ▲264.24 ▲0.03114.74 ▲13.2443.61 ▼0.31
Edit /wp-admin/edit_wfs_googleplay_thumbnail.php260.440.0814.20
WFS GPlay Thumbnails /wp-admin/wfs_googleplay_thumbnails.php260.440.077.44
Add New /wp-admin/add_wfs_googleplay_thumbnail.php260.440.148.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • widget_wfs_googleplay_thumbnail_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wfs-googleplay-thumbnail/wfs-googleplay-thumbnail-widget.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wfs-googleplay-thumbnail/wfs-googleplay-thumbnail-widget.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/edit_wfs_googleplay_thumbnail.php
    • > Network (severe)
    wp-admin/edit_wfs_googleplay_thumbnail.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/wfs_googleplay_thumbnails.php
    • > Network (severe)
    wp-admin/wfs_googleplay_thumbnails.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/add_wfs_googleplay_thumbnail.php
    • > Network (severe)
    wp-admin/add_wfs_googleplay_thumbnail.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wfs-googleplay-thumbnail === )
Please take inspiration from this readme.txt

wfs-googleplay-thumbnail/wfs-googleplay-thumbnail-plugin.php 92% from 13 tests

Analyzing the main PHP file in "WFS GooglePlay Thumbnail" version 0.5
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wfs-googleplay-thumbnail.php" instead of "wfs-googleplay-thumbnail-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,193 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32613631,496
PHP77229355
CSS3211321
JSON14021

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.26
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.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
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/wfs-image-small.png0.82KB0.13KB▼ 84.09%
assets/images/wfs-image-video.png0.82KB0.13KB▼ 84.10%
assets/images/menu_icon.png2.73KB0.08KB▼ 97.00%
assets/images/wfs-image.png1.65KB0.16KB▼ 90.35%