61% wp-spell-check

Code Review | WP Spell Check

WordPress plugin WP Spell Check scored61%from 54 tests.

About plugin

  • Plugin page: wp-spell-check
  • Plugin version: 9.17
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 19, 2015
  • Latest release: Aug 8, 2023
  • Number of updates: 370
  • Update frequency: every 8.0 days
  • Top authors: wpspellcheck (100%)

Code review

54 tests

User reviews

33 reviews

Install metrics

3,000+ active /154,788 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲3.32MB] [CPU: ▲54.88ms] Passed 4 tests

Analyzing server-side resources used by WP Spell Check
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /6.88 ▲3.4298.64 ▲59.69
Dashboard /wp-admin6.64 ▲3.34108.38 ▲56.01
Posts /wp-admin/edit.php6.65 ▲3.30103.64 ▲54.13
Add New Post /wp-admin/post-new.php9.12 ▲3.24145.16 ▲49.69
Media Library /wp-admin/upload.php6.64 ▲3.42105.55 ▲71.36

Server storage [IO: ▲12.14MB] [DB: ▲0.01MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 100 new files
Database: 8 new tables, 7 new options
New tables
wp_spellcheck_words
wp_spellcheck_grammar_options
wp_spellcheck_grammar
wp_spellcheck_options
wp_spellcheck_dictionary
wp_spellcheck_ignore
wp_spellcheck_empty
wp_spellcheck_html
New WordPress options
scdb_version
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Spell Check
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,984 ▲23813.25 ▼1.061.87 ▲0.1169.73 ▲26.37
Dashboard /wp-admin2,354 ▲1664.88 ▲0.01110.85 ▼4.3394.44 ▲49.22
Posts /wp-admin/edit.php2,207 ▲1182.16 ▲0.1240.19 ▼1.4355.02 ▲19.06
Add New Post /wp-admin/post-new.php1,594 ▲8020.64 ▲2.92630.83 ▼15.4545.06 ▼4.02
Media Library /wp-admin/upload.php1,490 ▲1024.20 ▼0.03102.66 ▼0.5962.49 ▲18.83
My Dictionary /wp-admin/wp-spellcheck-dictionary.php260.440.1015.14
WP Spell Check /wp-admin/class-wpsc-options.php260.440.095.20
Broken Code /wp-admin/wp-spellcheck-html.php260.440.066.46
Grammar /wp-admin/wp-spellcheck-grammar.php260.440.065.20
Spell Check /wp-admin/wp-spellcheck.php260.440.085.71
Ignore List /wp-admin/wp-spellcheck-ignore.php260.440.125.24
SEO Empty Fields /wp-admin/wp-spellcheck-seo.php260.440.076.04
Options /wp-admin/wp-spellcheck-options.php260.440.075.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure failed, leaving 8 tables in the database
    • wp_spellcheck_options
    • wp_spellcheck_grammar
    • wp_spellcheck_grammar_options
    • wp_spellcheck_empty
    • wp_spellcheck_html
    • wp_spellcheck_ignore
    • wp_spellcheck_words
    • wp_spellcheck_dictionary
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • scdb_version

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-spell-check/admin/reload.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'wpscx_scanner' not found in wp-content/plugins/wp-spell-check/admin/class-wpsc-spellcheck.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'wpscx_scanner' not found in wp-content/plugins/wp-spell-check/admin/class-wpsc-brokencode.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'wpscx_scanner' not found in wp-content/plugins/wp-spell-check/admin/grammar/class-wpsc-grammar.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'wpscx_scanner' not found in wp-content/plugins/wp-spell-check/admin/class-wpsc-seo.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-spell-check/admin/grammar/grammar_framework.php:25

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/wp-spellcheck-dictionary.php
    • > Network (severe)
    wp-admin/wp-spellcheck-dictionary.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/class-wpsc-options.php
    • > Network (severe)
    wp-admin/class-wpsc-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/wp-spellcheck-html.php
    • > Network (severe)
    wp-admin/wp-spellcheck-html.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/wp-spellcheck-grammar.php
    • > Network (severe)
    wp-admin/wp-spellcheck-grammar.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/wp-spellcheck.php
    • > Network (severe)
    wp-admin/wp-spellcheck.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/wp-spellcheck-ignore.php
    • > Network (severe)
    wp-admin/wp-spellcheck-ignore.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/wp-spellcheck-seo.php
    • > Network (severe)
    wp-admin/wp-spellcheck-seo.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/wp-spellcheck-options.php
    • > Network (severe)
    wp-admin/wp-spellcheck-options.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 81% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Donate link: Invalid url: "www.wpspellcheck.com/?utm_source=baseplugin&utm_campaign=readmefile&utm_medium=donationlink&utm_content=9.17"
  • Tags: There are too many tags (26 tag instead of maximum 10)
  • Screenshots: Screenshot #13 (The WP Spell Check Dashboard Widget) image required
Please take inspiration from this readme.txt

wp-spell-check/wpspellcheck.php 77% from 13 tests

The main file in "WP Spell Check" v. 9.17 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-spell-check.php" instead of "wpspellcheck.php")
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.7" instead of "5.0")
  • Description: Please don't use more than 140 characters for the plugin description (currently 210 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected30,695 lines of code in 45 files:
LanguageFilesBlank linesComment linesLines of code
PHP292,73496526,365
JavaScript136285004,287
CSS30043

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity44.26
▷ Minimum class complexity1.00
▷ Maximum class complexity308.00
Average method complexity5.57
▷ Minimum method complexity1.00
▷ Maximum method complexity91.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes27
▷ Abstract classes00.00%
▷ Concrete classes27100.00%
▷ Final classes00.00%
Methods238
▷ Static methods41.68%
▷ Public methods23699.16%
▷ Protected methods00.00%
▷ Private methods20.84%
Functions99
▷ Named functions9797.98%
▷ Anonymous functions22.02%
Constants24
▷ Global constants14.17%
▷ Class constants2395.83%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/logo-icon-16x16.png1.61KB0.46KB▼ 71.25%
admin/grammar/images/logo.png2.93KB1.70KB▼ 42.07%
admin/images/logo-icon-16x16.png0.50KB0.42KB▼ 15.20%
images/options.png1.97KB0.79KB▼ 60.17%
images/install-character.png16.31KB7.32KB▼ 55.12%