83% shoutout

Code Review | ShoutOut

WordPress plugin ShoutOut scored83%from 54 tests.

About plugin

  • Plugin page: shoutout
  • Plugin version: 4.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 29, 2020
  • Latest release: Jul 3, 2021
  • Number of updates: 232
  • Update frequency: every 1.7 days
  • Top authors: shoutoutglobal (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by ShoutOut
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.91 ▲0.78
Dashboard /wp-admin3.31 ▲0.0146.84 ▼0.82
Posts /wp-admin/edit.php3.36 ▲0.0145.38 ▼1.79
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.31 ▼18.30
Media Library /wp-admin/upload.php3.23 ▲0.0136.68 ▲5.92

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

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

Browser metrics Passed 4 tests

A check of browser resources used by ShoutOut
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.18 ▼1.201.68 ▼0.0543.95 ▲2.96
Dashboard /wp-admin2,223 ▲324.88 ▲0.03100.59 ▼3.3042.11 ▼0.56
Posts /wp-admin/edit.php2,103 ▲142.01 ▲0.0138.52 ▲1.4334.45 ▼0.09
Add New Post /wp-admin/post-new.php1,545 ▲2623.35 ▲0.26686.47 ▲36.0752.81 ▲2.36
Media Library /wp-admin/upload.php1,402 ▲144.19 ▲0.0597.24 ▲1.6342.91 ▼1.27

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/shoutout/uninstall.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 83% from 29 tests

readme.txt 88% 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:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
The official readme.txt might help

shoutout/shoutout.php 77% from 13 tests

The main file in "ShoutOut" v. 4.0.2 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:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin970 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP8248253624
PO File15052174
JavaScript52341161
CSS20611

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants25100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png10.18KB5.09KB▼ 50.05%