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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 44.09 ▼5.18 |
Dashboard /wp-admin | 3.56 ▲0.26 | 51.11 ▼1.17 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 51.50 ▼0.63 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 98.48 ▲3.45 |
Media Library /wp-admin/upload.php | 3.42 ▲0.20 | 42.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.27 ▼0.07 | 1.93 ▲0.11 | 40.92 ▼3.19 |
Dashboard /wp-admin | 2,192 ▲12 | 5.63 ▲0.00 | 92.87 ▼3.01 | 42.04 ▲0.26 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 2.02 ▲0.01 | 40.92 ▼0.58 | 36.49 ▲0.03 |
Add New Post /wp-admin/post-new.php | 1,535 ▼3 | 24.31 ▲6.26 | 651.88 ▲24.38 | 59.87 ▼1.90 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.19 ▲0.03 | 96.68 ▼0.95 | 43.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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 311 | 461 | 1,493 |
PHP | 34 | 315 | 872 | 1,245 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 6.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 9 | |
Traits | 1 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 22 | 22.00% |
▷ Public methods | 94 | 94.00% |
▷ Protected methods | 4 | 4.00% |
▷ Private methods | 2 | 2.00% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 10 | |
▷ Global constants | 6 | 60.00% |
▷ Class constants | 4 | 40.00% |
▷ Public constants | 4 | 100.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