84% tinymce-spellcheck

Code Review | TinyMCE Spellcheck

WordPress plugin TinyMCE Spellcheck scored84%from 54 tests.

About plugin

  • Plugin page: tinymce-spellcheck
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 6.3.1
  • First release: Aug 8, 2013
  • Latest release: Aug 1, 2014
  • Number of updates: 13
  • Update frequency: every 27.5 days
  • Top authors: mmuro (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

4,000+ active /48,845 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.53ms] Passed 4 tests

This is a short check of server-side resources used by TinyMCE Spellcheck
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.19 ▼8.96
Dashboard /wp-admin3.32 ▲0.0248.82 ▼3.93
Posts /wp-admin/edit.php3.37 ▲0.0152.66 ▼0.76
Add New Post /wp-admin/post-new.php5.93 ▲0.0498.51 ▼12.45
Media Library /wp-admin/upload.php3.24 ▲0.0137.15 ▲2.66

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for TinyMCE Spellcheck
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.321.75 ▼0.3440.49 ▼5.16
Dashboard /wp-admin2,195 ▲185.57 ▼0.1091.21 ▼2.7040.99 ▼5.65
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0239.77 ▼2.7337.78 ▼4.42
Add New Post /wp-admin/post-new.php1,538 ▲323.08 ▲4.71644.55 ▼13.2337.84 ▼27.21
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.0998.03 ▼7.5244.90 ▼4.14

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tinymce-spellcheck/tinymce-spellcheck.php:248
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tinymce-spellcheck/includes/atd-l10n.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

tinymce-spellcheck/tinymce-spellcheck.php Passed 13 tests

"TinyMCE Spellcheck" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
Adds a contextual spell, style, and grammar checker to WordPress 3.6+

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,012 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript74152371,505
PHP5133123408
CSS217799

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin