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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.88 ▲3.42 | 98.64 ▲59.69 |
Dashboard /wp-admin | 6.64 ▲3.34 | 108.38 ▲56.01 |
Posts /wp-admin/edit.php | 6.65 ▲3.30 | 103.64 ▲54.13 |
Add New Post /wp-admin/post-new.php | 9.12 ▲3.24 | 145.16 ▲49.69 |
Media Library /wp-admin/upload.php | 6.64 ▲3.42 | 105.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,984 ▲238 | 13.25 ▼1.06 | 1.87 ▲0.11 | 69.73 ▲26.37 |
Dashboard /wp-admin | 2,354 ▲166 | 4.88 ▲0.01 | 110.85 ▼4.33 | 94.44 ▲49.22 |
Posts /wp-admin/edit.php | 2,207 ▲118 | 2.16 ▲0.12 | 40.19 ▼1.43 | 55.02 ▲19.06 |
Add New Post /wp-admin/post-new.php | 1,594 ▲80 | 20.64 ▲2.92 | 630.83 ▼15.45 | 45.06 ▼4.02 |
Media Library /wp-admin/upload.php | 1,490 ▲102 | 4.20 ▼0.03 | 102.66 ▼0.59 | 62.49 ▲18.83 |
My Dictionary /wp-admin/wp-spellcheck-dictionary.php | 26 | 0.44 | 0.10 | 15.14 |
WP Spell Check /wp-admin/class-wpsc-options.php | 26 | 0.44 | 0.09 | 5.20 |
Broken Code /wp-admin/wp-spellcheck-html.php | 26 | 0.44 | 0.06 | 6.46 |
Grammar /wp-admin/wp-spellcheck-grammar.php | 26 | 0.44 | 0.06 | 5.20 |
Spell Check /wp-admin/wp-spellcheck.php | 26 | 0.44 | 0.08 | 5.71 |
Ignore List /wp-admin/wp-spellcheck-ignore.php | 26 | 0.44 | 0.12 | 5.24 |
SEO Empty Fields /wp-admin/wp-spellcheck-seo.php | 26 | 0.44 | 0.07 | 6.04 |
Options /wp-admin/wp-spellcheck-options.php | 26 | 0.44 | 0.07 | 5.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 2,734 | 965 | 26,365 |
JavaScript | 13 | 628 | 500 | 4,287 |
CSS | 3 | 0 | 0 | 43 |
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 code | 0.24 |
Average class complexity | 44.26 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 308.00 |
Average method complexity | 5.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 27 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 238 | |
▷ Static methods | 4 | 1.68% |
▷ Public methods | 236 | 99.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.84% |
Functions | 99 | |
▷ Named functions | 97 | 97.98% |
▷ Anonymous functions | 2 | 2.02% |
Constants | 24 | |
▷ Global constants | 1 | 4.17% |
▷ Class constants | 23 | 95.83% |
▷ Public constants | 23 | 100.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/logo-icon-16x16.png | 1.61KB | 0.46KB | ▼ 71.25% |
admin/grammar/images/logo.png | 2.93KB | 1.70KB | ▼ 42.07% |
admin/images/logo-icon-16x16.png | 0.50KB | 0.42KB | ▼ 15.20% |
images/options.png | 1.97KB | 0.79KB | ▼ 60.17% |
images/install-character.png | 16.31KB | 7.32KB | ▼ 55.12% |