10% gmo-widget-custom

Code Review | Plugin Name: GMO Widget Custom

WordPress plugin Plugin Name: GMO Widget Custom scored10%from 54 tests.

About plugin

  • Plugin page: gmo-widget-custom
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Oct 2, 2014
  • Latest release: Jan 29, 2016
  • Number of updates: 22
  • Update frequency: every 43.5 days
  • Top authors: Takeaki Nagashima (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,157 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/gmo-widget-custom/gmo-widget-custom.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; gmoWidgetCustom has a deprecated constructor

Server metrics [RAM: ▼1.85MB] [CPU: ▼55.05ms] Passed 4 tests

A check of server-side resources used by Plugin Name: GMO Widget Custom
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.314.66 ▼34.03
Dashboard /wp-admin2.17 ▼1.186.66 ▼53.93
Posts /wp-admin/edit.php2.17 ▼1.195.41 ▼40.88
Add New Post /wp-admin/post-new.php2.17 ▼3.725.71 ▼91.37
Media Library /wp-admin/upload.php2.17 ▼1.065.98 ▼26.56

Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

Plugin Name: GMO Widget Custom: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.051.69 ▲0.1237.44 ▼3.76
Dashboard /wp-admin2,192 ▲185.51 ▼0.1481.66 ▼7.1637.26 ▼3.86
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0935.03 ▲1.4735.49 ▼2.17
Add New Post /wp-admin/post-new.php1,526 ▼222.96 ▼0.25672.20 ▼0.0555.12 ▼8.29
Media Library /wp-admin/upload.php1,394 ▼04.15 ▼0.0197.82 ▼3.6841.87 ▼2.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/gmo-widget-custom/gmo-widget-custom.php+26
    Methods with the same name as their class will not be constructors in a future version of PHP; gmoWidgetCustom has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_widget_custom
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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)
Even though no errors were found, 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
The following issues need your attention
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/gmo-widget-custom/gmo-widget-custom.php
    • > /wp-content/plugins/gmo-widget-custom/views/widget-admin.deprecated.php
    • > /wp-content/plugins/gmo-widget-custom/views/widget.php
    • > /wp-content/plugins/gmo-widget-custom/views/widget-admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === Plugin Name: GMO Widget Custom === )
  • Screenshots: Please add an image for screenshot #1 (button image)
You can look at the official readme.txt

gmo-widget-custom/gmo-widget-custom.php 92% from 13 tests

This is the main PHP file of "Plugin Name: GMO Widget Custom" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")

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
Success! There were no dangerous files found in this plugin821 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP59495503
JavaScript35557226
PO File1303192

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity38.50
▷ Minimum class complexity30.00
▷ Maximum class complexity47.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods313.64%
▷ Public methods1777.27%
▷ Protected methods00.00%
▷ Private methods522.73%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.49MB with 0.35MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png346.40KB99.11KB▼ 71.39%
screenshot-1.png156.79KB42.83KB▼ 72.69%