Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/drive-wp/wp-drive.php+88
Trying to access array offset on value of type bool
Server metrics [RAM: ▼2.12MB] [CPU: ▼56.99ms] Passed 4 tests
This is a short check of server-side resources used by Drive Wp
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.59 | 4.66 ▼42.82 |
Dashboard /wp-admin | 2.16 ▼1.40 | 9.28 ▼44.33 |
Posts /wp-admin/edit.php | 2.16 ▼1.52 | 6.55 ▼42.75 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.98 | 6.22 ▼98.04 |
Media Library /wp-admin/upload.php | 2.16 ▼1.33 | 7.22 ▼34.97 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options |
---|
wp_drive_db_ver |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Drive Wp
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.35 ▼0.42 | 1.78 ▼0.27 | 39.86 ▼3.67 |
Dashboard /wp-admin | 2,202 ▲31 | 5.64 ▼0.01 | 93.94 ▼7.70 | 40.25 ▼4.55 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▼0.06 | 39.64 ▲2.94 | 35.58 ▲0.36 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.24 ▲5.74 | 672.42 ▲14.09 | 52.37 ▼1.61 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▼0.15 | 115.59 ▲6.23 | 51.18 ▲6.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/drive-wp/wp-drive.php+88
Trying to access array offset on value of type bool
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- recovery_mode_email_last_sent
- widget_recent-comments
- wp_drive_db_ver
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: change attachment file, rest api, windows drive
drive-wp/wp-drive.php 77% from 13 tests
"Drive Wp" version 0.5.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("drive-wp.php" instead of "wp-drive.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 182 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin459 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 124 | 123 | 418 |
PO File | 1 | 6 | 12 | 41 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 21.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 43.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 7 | 22.58% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.00% |
Constants | 6 | |
▷ Global constants | 1 | 16.67% |
▷ Class constants | 5 | 83.33% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin