Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.86ms] Passed 4 tests
Analyzing server-side resources used by OffCanvas / Drawer
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.30 ▼5.78 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.03 ▼2.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 46.33 ▲1.07 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.54 ▼8.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.23 ▲2.33 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for OffCanvas / Drawer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲95 | 13.67 ▼0.63 | 9.36 ▲7.15 | 43.46 ▼4.84 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲0.02 | 105.58 ▼8.36 | 39.17 ▼3.69 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.07 | 38.33 ▲0.79 | 36.67 ▲1.16 |
Add New Post /wp-admin/post-new.php | 6,422 ▲4,887 | 28.45 ▲5.37 | 874.45 ▲197.32 | 36.04 ▼13.90 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.19 ▼0.04 | 97.71 ▼2.41 | 67.04 ▲23.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant OCB_PLUGIN_VERSION - assumed 'OCB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/offcanvas-block/dist/editor.asset.php on line 3
- > PHP Warning
Use of undefined constant OCB_PLUGIN_VERSION - assumed 'OCB_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/offcanvas-block/dist/script.asset.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Requires at least: Invalid version format
offcanvas-block/index.php 85% from 13 tests
Analyzing the main PHP file in "OffCanvas / Drawer" version 1.0.0
The following require your attention:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("offcanvas-block.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin222 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 94 |
PO File | 1 | 34 | 63 | 86 |
PHP | 3 | 10 | 13 | 36 |
JavaScript | 2 | 0 | 18 | 4 |
CSS | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin