84% gg-widget-title-link

Code Review | GG Widget Title Link

WordPress plugin GG Widget Title Link scored84%from 54 tests.

About plugin

  • Plugin page: gg-widget-title-link
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Nov 13, 2012
  • Latest release: Nov 25, 2013
  • Number of updates: 6
  • Update frequency: every 63.5 days
  • Top authors: ggutenberg (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

100+ active /3,728 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.29ms] Passed 4 tests

Server-side resources used by GG Widget Title Link
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.26 ▲5.08
Dashboard /wp-admin3.33 ▼0.0148.46 ▼8.48
Posts /wp-admin/edit.php3.38 ▲0.0243.95 ▼0.50
Add New Post /wp-admin/post-new.php5.91 ▲0.0380.14 ▼15.10
Media Library /wp-admin/upload.php3.25 ▲0.0234.90 ▼1.08

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for GG Widget Title Link
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.174.48 ▲2.6545.34 ▲5.50
Dashboard /wp-admin2,206 ▲155.86 ▲0.8293.44 ▼13.5938.83 ▼1.66
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0435.83 ▼0.0130.50 ▼4.62
Add New Post /wp-admin/post-new.php1,544 ▲2518.55 ▼4.56628.27 ▼73.5553.31 ▼6.92
Media Library /wp-admin/upload.php1,388 ▲34.18 ▼0.0497.52 ▼24.4542.36 ▼4.31

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gg-widget-title-link/gg-widget-title-link.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Modified widget with new link field)
You can look at the official readme.txt

gg-widget-title-link/gg-widget-title-link.php Passed 13 tests

The main file in "GG Widget Title Link" v. 0.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
Link the title on any widget

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 plugin144 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13135144

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png20.45KB5.51KB▼ 73.07%