89% consistency

Code Review | Consistency – Typographical Corrector for Gutenberg

WordPress plugin Consistency – Typographical Corrector for Gutenberg scored89%from 54 tests.

About plugin

  • Plugin page: consistency
  • Plugin version: 1.4.5
  • PHP compatiblity: 7.4 or higher+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.2
  • WordPress version: 6.3.1
  • First release: Dec 17, 2022
  • Latest release: Apr 21, 2023
  • Number of updates: 40
  • Update frequency: every 3.2 days
  • Top authors: Webaxones (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /953 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼0.88ms] Passed 4 tests

A check of server-side resources used by Consistency – Typographical Corrector for Gutenberg
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2644.09 ▼5.18
Dashboard /wp-admin3.56 ▲0.2651.11 ▼1.17
Posts /wp-admin/edit.php3.61 ▲0.2651.50 ▼0.63
Add New Post /wp-admin/post-new.php6.09 ▲0.2198.48 ▲3.45
Media Library /wp-admin/upload.php3.42 ▲0.2042.40 ▲3.47

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Consistency – Typographical Corrector for Gutenberg
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.071.93 ▲0.1140.92 ▼3.19
Dashboard /wp-admin2,192 ▲125.63 ▲0.0092.87 ▼3.0142.04 ▲0.26
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0140.92 ▼0.5836.49 ▲0.03
Add New Post /wp-admin/post-new.php1,535 ▼324.31 ▲6.26651.88 ▲24.3859.87 ▼1.90
Media Library /wp-admin/upload.php1,397 ▼64.19 ▲0.0396.68 ▼0.9543.04 ▲2.03

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

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

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)
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Requires php: The plugin version is formatted incorrectly
  • Screenshots: A description for screenshot #2 is required in consistency/assets to your readme.txt
The official readme.txt might help

consistency/consistency.php 92% from 13 tests

The main PHP script in "Consistency – Typographical Corrector for Gutenberg" version 1.4.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Requires PHP: Required version number formatted incorrectly (ex. "7.0" instead of "7.4 or higher")

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
Good job! No executable or dangerous file extensions detected2,743 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript113114611,493
PHP343158721,245
JSON1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity6.04
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces14
Interfaces9
Traits1
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes00.00%
Methods100
▷ Static methods2222.00%
▷ Public methods9494.00%
▷ Protected methods44.00%
▷ Private methods22.00%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants10
▷ Global constants660.00%
▷ Class constants440.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected