Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.24MB] [CPU: ▼16.20ms] Passed 4 tests
This is a short check of server-side resources used by NotWiz Calendar Block
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 47.70 ▲5.58 |
Dashboard /wp-admin | 3.34 ▲0.00 | 50.36 ▼10.76 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 48.01 ▼2.24 |
Add New Post /wp-admin/post-new.php | 4.86 ▼1.03 | 52.26 ▼54.42 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.63 ▲2.64 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by NotWiz Calendar Block
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲56 | 13.26 ▼1.11 | 2.14 ▲0.34 | 42.94 ▲0.50 |
Dashboard /wp-admin | 2,209 ▲30 | 5.90 ▲1.01 | 112.97 ▲5.16 | 42.92 ▼4.45 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.07 | 37.35 ▼0.93 | 33.77 ▼2.92 |
Add New Post /wp-admin/post-new.php | 6,205 ▲4,672 | 22.04 ▼1.36 | 893.15 ▲210.60 | 75.57 ▲18.21 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.16 ▼0.02 | 97.60 ▼1.55 | 41.59 ▼1.46 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function Not_Wiz\\Calendar\\Block\\plugin_dir_path() in wp-content/plugins/notwiz-calendar-block/notwiz-calendar-block.php:42
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #4, #5 in notwiz-calendar-block/assets to your readme.txt
notwiz-calendar-block/notwiz-calendar-block.php Passed 13 tests
The principal PHP file in "NotWiz Calendar Block" v. 1.0.5 is loaded by WordPress automatically on each request
77 characters long description:
This plug-in is a Gutenberg Block on a calendar that supports regular events.
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
Success! There were no dangerous files found in this plugin129 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 27 | 24 | 124 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 10 | 2 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 3.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin