89% simple-widget-title-links

Code Review | Simple Widget Title Links

WordPress plugin Simple Widget Title Links scored 89% from 54 tests.

About plugin

  • Plugin page: simple-widget-tit...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.6
  • WordPress version: 6.3.1
  • First release: Apr 1, 2019
  • Latest release: Feb 27, 2021
  • Number of updates: 15
  • Update frequency: every 46.7 days
  • Top authors: tourbillonlabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 5,354 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼5.04ms] Passed 4 tests

Analyzing server-side resources used by Simple Widget Title Links
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0744.55 ▲1.56
Dashboard /wp-admin3.38 ▲0.0745.30 ▼3.67
Posts /wp-admin/edit.php3.49 ▲0.1346.61 ▼1.11
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.16 ▼16.92
Media Library /wp-admin/upload.php3.30 ▲0.0739.42 ▲1.80

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Widget Title Links
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.44 ▼0.311.71 ▼0.0641.71 ▼7.19
Dashboard /wp-admin2,206 ▲185.79 ▲0.6995.80 ▼7.7638.18 ▼5.03
Posts /wp-admin/edit.php2,089 ▼02.04 ▼0.0135.89 ▼6.8731.51 ▼2.57
Add New Post /wp-admin/post-new.php1,535 ▲123.53 ▲0.52655.55 ▲4.6052.30 ▼14.77
Media Library /wp-admin/upload.php1,388 ▼34.24 ▲0.0794.03 ▼7.0443.50 ▲0.96

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Widget options)
The official readme.txt is a good inspiration

simple-widget-title-links/simple-widget-title-links.php 92% from 13 tests

The entry point to "Simple Widget Title Links" version 1.0.3 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected665 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP13136472563
JSON100102

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity11.29
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods45
▷ Static methods920.00%
▷ Public methods4088.89%
▷ Protected methods00.00%
▷ Private methods511.11%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png88.16KB31.06KB▼ 64.76%