Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.40ms] Passed 4 tests
An overview of server-side resources used by Proofreading
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.86 ▲0.85 |
Dashboard /wp-admin | 3.43 ▲0.13 | 55.69 ▲5.85 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 47.85 ▼7.51 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 92.44 ▼2.23 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.80 ▼4.70 |
Proofreading /wp-admin/options-general.php?page=proofreading | 3.34 | 34.67 |
Server storage [IO: ▲0.18MB] [DB: ▲0.02MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 41 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_proofreading_rules |
wp_proofreading_languages |
wp_proofreading_rules_settings |
New WordPress options |
---|
proofreading-language-default |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
proofreading-version |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Proofreading
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,787 ▲26 | 14.34 ▼0.01 | 1.89 ▲0.14 | 43.50 ▲0.28 |
Dashboard /wp-admin | 2,196 ▲19 | 5.59 ▼0.08 | 83.67 ▼12.33 | 37.90 ▲0.14 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▲0.03 | 35.07 ▼6.21 | 31.63 ▼9.94 |
Add New Post /wp-admin/post-new.php | 6,493 ▲4,965 | 27.54 ▲4.19 | 977.23 ▲279.06 | 66.84 ▲13.44 |
Media Library /wp-admin/upload.php | 1,395 ▼5 | 4.19 ▼0.02 | 99.92 ▼7.28 | 41.45 ▼5.40 |
Proofreading /wp-admin/options-general.php?page=proofreading | 1,202 | 2.25 | 31.37 | 26.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/proofreading/public/partials/proofreading-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/proofreading/admin/includes/class-proofreading-metabox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/proofreading/admin/includes/class-ajax-handler.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (12 tag instead of maximum 10)
proofreading/proofreading.php 92% from 13 tests
The principal PHP file in "Proofreading" v. 1.1 is loaded by WordPress automatically on each request
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 226 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,971 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 271 | 504 | 823 |
PO File | 3 | 125 | 148 | 365 |
JavaScript | 5 | 56 | 32 | 304 |
SQL | 1 | 17 | 0 | 276 |
CSS | 2 | 25 | 7 | 203 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 38 | 84.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 15.56% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/eye.png | 0.31KB | 0.36KB | 0.00% |
admin/images/language.png | 1.58KB | 1.30KB | ▼ 17.53% |
admin/images/logo_scribit.png | 1.98KB | 1.98KB | 0.34% |
admin/images/logo.png | 4.69KB | 3.27KB | ▼ 30.35% |