89% gourl-spelling-notifications

Code Review | Webmaster Spelling Notifications

WordPress plugin Webmaster Spelling Notifications scored89%from 54 tests.

About plugin

  • Plugin page: gourl-spelling-no...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.8
  • WordPress version: 6.3.1
  • First release: Mar 19, 2015
  • Latest release: Jul 13, 2021
  • Number of updates: 20
  • Update frequency: every 115.4 days
  • Top authors: gourl (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /77,420 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.74ms] Passed 4 tests

This is a short check of server-side resources used by Webmaster Spelling Notifications
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1341.68 ▲1.17
Dashboard /wp-admin3.43 ▲0.0853.15 ▼11.29
Posts /wp-admin/edit.php3.54 ▲0.1853.47 ▲3.06
Add New Post /wp-admin/post-new.php6.01 ▲0.1297.26 ▼3.74
Media Library /wp-admin/upload.php3.35 ▲0.1237.40 ▲2.91
Spelling Notifications /wp-admin/options-general.php?page=spelling_notifications3.3236.30

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

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

Browser metrics Passed 4 tests

Webmaster Spelling Notifications: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲4313.25 ▼1.171.74 ▼0.3136.70 ▼10.71
Dashboard /wp-admin2,212 ▲275.83 ▼0.06113.28 ▼7.4544.96 ▼0.20
Posts /wp-admin/edit.php2,098 ▲92.02 ▲0.0039.97 ▲1.7134.25 ▼1.23
Add New Post /wp-admin/post-new.php1,532 ▲1318.17 ▼4.94624.99 ▼58.3449.44 ▼2.57
Media Library /wp-admin/upload.php1,391 ▼04.17 ▲0.0399.31 ▼4.2041.59 ▼1.53
Spelling Notifications /wp-admin/options-general.php?page=spelling_notifications1,1282.0724.4235.59

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

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 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 38 tag instead of maximum 10
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Visitor can press Ctrl+Enter on your website when spelling or grammatical errors seem to need clarification or correction), #2 (Message sent successfully to webmaster), #3 (Webmaster will receive an email about spelling error), #4 (Plugin Settings Page)
You can look at the official readme.txt

gourl-spelling-notifications/gourl_spelling.php 85% from 13 tests

The primary PHP file in "Webmaster Spelling Notifications" version 1.1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 388 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gourl-spelling-notifications.php" instead of "gourl_spelling.php")

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
No dangerous file extensions were detected1,088 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP112160333
SVG100288
PO File298121282
CSS4102470
JavaScript381362
Markdown217029
HTML36024

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions2
▷ Named functions2100.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
11 PNG files occupy 1.20MB with 0.81MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png254.56KB90.23KB▼ 64.55%
images/gourlspelling3.png2.89KB0.10KB▼ 96.45%
screenshot-4.png76.64KB36.66KB▼ 52.17%
screenshot-2.png250.41KB92.85KB▼ 62.92%
images/gourlspelling2.png1.49KB0.55KB▼ 62.92%