90% subscribe-google-groups

Code Review | Subscribe Google Groups

WordPress plugin Subscribe Google Groups scored90%from 54 tests.

About plugin

  • Plugin page: subscribe-google-...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.5
  • WordPress version: 6.3.1
  • First release: May 2, 2018
  • Latest release: Jul 28, 2020
  • Number of updates: 5
  • Update frequency: every 165.2 days
  • Top authors: deployer (80%)seravo (40%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,095 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Subscribe Google Groups
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.06 ▼3.52
Dashboard /wp-admin3.38 ▲0.0450.29 ▼18.20
Posts /wp-admin/edit.php3.49 ▲0.1453.85 ▼3.03
Add New Post /wp-admin/post-new.php5.96 ▲0.0885.51 ▼20.93
Media Library /wp-admin/upload.php3.30 ▲0.0839.03 ▲3.06

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_subscribe-google-groups
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Subscribe Google Groups
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲14313.73 ▼0.578.88 ▲7.0544.63 ▲0.38
Dashboard /wp-admin2,206 ▲185.83 ▲0.96101.15 ▼1.1242.93 ▲2.99
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0140.16 ▲1.3934.73 ▼1.80
Add New Post /wp-admin/post-new.php1,534 ▲120.87 ▼2.43667.08 ▼11.3951.15 ▼3.02
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.09112.28 ▼12.8648.49 ▼0.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_subscribe-google-groups
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
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 on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
The official readme.txt is a good inspiration

subscribe-google-groups/subscribe-google-groups.php Passed 13 tests

"Subscribe Google Groups" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Widget for subscribing to Google Groups.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected348 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP354212267
PO File1131546
JavaScript133018
YAML13111
Markdown1406

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity15.50
▷ Minimum class complexity14.00
▷ Maximum class complexity17.00
Average method complexity2.53
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods1052.63%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png20.80KB7.49KB▼ 64.01%
assets/screenshot-3.png49.72KB18.05KB▼ 63.69%
screenshot.png4.14KB2.58KB▼ 37.60%
assets/screenshot-2.png6.68KB2.91KB▼ 56.41%