Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.45ms] Passed 4 tests
An overview of server-side resources used by JKL Grammar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 35.91 ▲0.22 |
Dashboard /wp-admin | 3.44 ▲0.10 | 43.91 ▼14.87 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.17 ▲4.73 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.39 | 95.10 ▲1.12 |
Media Library /wp-admin/upload.php | 3.36 ▲0.14 | 31.86 ▼4.25 |
Usage /wp-admin/edit-tags.php?taxonomy=usage&post_type=grammar | 3.36 | 42.64 |
Books /wp-admin/edit-tags.php?taxonomy=book&post_type=grammar | 3.36 | 35.07 |
All Grammar /wp-admin/edit.php?post_type=grammar | 3.41 | 40.13 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=grammar | 3.36 | 32.28 |
Expressions /wp-admin/edit-tags.php?taxonomy=expression&post_type=grammar | 3.36 | 31.60 |
Levels /wp-admin/edit-tags.php?taxonomy=level&post_type=grammar | 3.36 | 32.02 |
Add New /wp-admin/post-new.php?post_type=grammar | 6.27 | 78.90 |
Parts of Speech /wp-admin/edit-tags.php?taxonomy=part-of-speech&post_type=grammar | 3.36 | 30.17 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
JKL Grammar: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲96 | 14.46 ▼0.09 | 1.78 ▼0.17 | 41.99 ▲2.30 |
Dashboard /wp-admin | 2,270 ▲82 | 5.85 ▼0.06 | 106.87 ▲2.83 | 37.65 ▼7.08 |
Posts /wp-admin/edit.php | 2,153 ▲67 | 2.03 ▼0.02 | 38.99 ▼2.03 | 36.20 ▲1.60 |
Add New Post /wp-admin/post-new.php | 1,574 ▲41 | 23.24 ▲0.20 | 660.69 ▲13.23 | 62.00 ▲8.49 |
Media Library /wp-admin/upload.php | 1,449 ▲61 | 4.22 ▲0.03 | 96.08 ▼3.31 | 40.92 ▼2.38 |
Usage /wp-admin/edit-tags.php?taxonomy=usage&post_type=grammar | 1,295 | 2.14 | 27.56 | 27.65 |
Books /wp-admin/edit-tags.php?taxonomy=book&post_type=grammar | 1,327 | 2.17 | 26.43 | 26.51 |
All Grammar /wp-admin/edit.php?post_type=grammar | 1,239 | 1.95 | 32.71 | 31.20 |
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=grammar | 1,368 | 2.17 | 26.24 | 29.14 |
Expressions /wp-admin/edit-tags.php?taxonomy=expression&post_type=grammar | 1,298 | 2.17 | 26.04 | 24.99 |
Levels /wp-admin/edit-tags.php?taxonomy=level&post_type=grammar | 1,329 | 2.17 | 27.89 | 29.14 |
Add New /wp-admin/post-new.php?post_type=grammar | 6,298 | 23.06 | 799.59 | 28.21 |
Parts of Speech /wp-admin/edit-tags.php?taxonomy=part-of-speech&post_type=grammar | 1,295 | 2.17 | 26.76 | 24.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/jkl-grammar/archive-grammar.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/jkl-grammar/jkl-grammar.php:30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/jkl-grammar/single-grammar.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/jkl-grammar/react-functions.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/jkl-grammar/react-grammar-index.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: Screenshot #3 (Archive Page) image required
jkl-grammar/jkl-grammar.php 92% from 13 tests
This is the main PHP file of "JKL Grammar" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected639 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 84 | 121 | 564 |
Markdown | 1 | 43 | 0 | 56 |
JavaScript | 1 | 5 | 1 | 19 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin