84% misspelling-reporter

Code Review | Misspelling Reporter

WordPress plugin Misspelling Reporter scored84%from 54 tests.

About plugin

  • Plugin page: misspelling-reporter
  • Plugin version: 0.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.6
  • WordPress version: 6.3.1
  • First release: May 30, 2013
  • Latest release: Jun 15, 2013
  • Number of updates: 13
  • Update frequency: every 1.2 days
  • Top authors: blobaugh (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /3,089 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.69ms] Passed 4 tests

An overview of server-side resources used by Misspelling Reporter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.32 ▼2.90
Dashboard /wp-admin3.31 ▲0.0149.64 ▼1.77
Posts /wp-admin/edit.php3.36 ▲0.0152.18 ▼2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.27 ▼22.60
Media Library /wp-admin/upload.php3.24 ▲0.0135.49 ▼2.78

Server storage [IO: ▲0.02MB] [DB: ▲0.31MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Misspelling Reporter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.31 ▼0.411.60 ▼0.0739.73 ▼2.71
Dashboard /wp-admin2,195 ▲185.54 ▼0.1286.29 ▼9.2540.27 ▼1.79
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0235.45 ▼6.4233.72 ▼2.52
Add New Post /wp-admin/post-new.php1,526 ▼223.72 ▲0.50685.68 ▲7.4956.02 ▼4.70
Media Library /wp-admin/upload.php1,400 ▲34.17 ▼0.11103.67 ▲5.6845.97 ▲1.62

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/misspelling-reporter/misspelling-reporter.php:23

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: misspell, typo, crowd source spelling, report, misspelling reporter...

misspelling-reporter/misspelling-reporter.php Passed 13 tests

The principal PHP file in "Misspelling Reporter" v. 0.6.5 is loaded by WordPress automatically on each request
108 characters long description:
Allows users to highlight misspelled text and report to the site/article admins. Inspired by #BeachPress2013

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin249 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PO File42424111
PHP1304573
JavaScript116355
CSS10010

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin