89% gosquared-official

Code Review | gosquared-official

WordPress plugin gosquared-official scored89%from 54 tests.

About plugin

  • Plugin page: gosquared-official
  • Plugin version: 1.3.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-6.3.0
  • WordPress version: 6.3.1
  • First release: Oct 12, 2018
  • Latest release: Aug 16, 2023
  • Number of updates: 46
  • Update frequency: every 38.5 days
  • Top authors: russellvaughan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /9,462 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.84ms] Passed 4 tests

Analyzing server-side resources used by gosquared-official
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0441.69 ▼0.67
Dashboard /wp-admin3.39 ▲0.0154.33 ▼10.99
Posts /wp-admin/edit.php3.51 ▲0.1151.93 ▲2.23
Add New Post /wp-admin/post-new.php5.97 ▲0.0587.68 ▲2.06
Media Library /wp-admin/upload.php3.32 ▲0.0542.03 ▲6.49
GoSquared /wp-admin/options-general.php?page=gosquared-official-plugin3.2833.85

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for gosquared-official
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲7714.77 ▲0.422.91 ▲0.9943.90 ▲1.79
Dashboard /wp-admin2,204 ▲335.63 ▼0.0193.34 ▲3.8538.88 ▼8.43
Posts /wp-admin/edit.php2,106 ▲62.02 ▲0.0233.48 ▼1.6136.37 ▼2.16
Add New Post /wp-admin/post-new.php1,531 ▲323.08 ▼0.06668.70 ▼28.1956.39 ▼2.89
Media Library /wp-admin/upload.php1,409 ▲94.18 ▼0.0796.63 ▼20.4443.31 ▼3.99
GoSquared /wp-admin/options-general.php?page=gosquared-official-plugin8431.9921.5029.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% 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
These attributes need your attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === gosquared-official === )
The official readme.txt might help

gosquared-official/gosquared-official.php 85% from 13 tests

The main file in "gosquared-official" v. 1.3.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Plugin Name: It is recommended to keep the plugin name shorter than 70 characters (currently 76 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Everything looks great! No dangerous files found in this plugin286 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP43627201
Markdown118045
CSS14018
JSON10012
XML10010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity3.00
▷ Maximum class complexity12.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 3.35MB with 2.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544X400.png404.78KB89.59KB▼ 77.87%
assets/banner-772x250.png140.45KB32.51KB▼ 76.85%
assets/screenshot-5.png117.45KB38.12KB▼ 67.54%
assets/screenshot-2.png180.54KB40.44KB▼ 77.60%
assets/icon-128x128.png4.09KB1.37KB▼ 66.52%