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.08MB] [CPU: ▼4.10ms] Passed 4 tests
This is a short check of server-side resources used by Drivr Lite - Google Drive Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.39 ▼5.24 |
Dashboard /wp-admin | 3.38 ▲0.08 | 46.05 ▼2.29 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 45.84 ▼2.10 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 87.22 ▼6.75 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.98 ▲2.63 |
Drivr Lite /wp-admin/options-general.php?page=drivr-settings-free | 3.33 | 32.49 |
Server storage [IO: ▲0.47MB] [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: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Drivr Lite - Google Drive Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.23 ▼1.07 | 1.73 ▼0.34 | 44.18 ▼0.14 |
Dashboard /wp-admin | 2,207 ▲19 | 5.80 ▲0.91 | 93.92 ▼18.65 | 40.06 ▼0.50 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.03 ▼0.08 | 34.96 ▼0.58 | 30.68 ▼4.59 |
Add New Post /wp-admin/post-new.php | 6,575 ▲5,042 | 25.29 ▲2.19 | 932.41 ▲258.52 | 56.07 ▲1.08 |
Media Library /wp-admin/upload.php | 1,441 ▲50 | 4.28 ▲0.07 | 96.95 ▼0.37 | 75.44 ▲28.39 |
Drivr Lite /wp-admin/options-general.php?page=drivr-settings-free | 1,228 | 2.10 | 39.93 | 46.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
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: google drive, drive, embed pdf, gdrive, embed drive...
drivr-google-drive-file-picker/drivr-lite.php 85% from 13 tests
The principal PHP file in "Drivr Lite - Google Drive Plugin" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- 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: It is recommended to name the main PHP file as the plugin slug ("drivr-google-drive-file-picker.php" instead of "drivr-lite.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,934 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 160 | 3 | 857 |
PHP | 3 | 19 | 115 | 646 |
JavaScript | 2 | 8 | 1 | 409 |
SVG | 2 | 0 | 0 | 20 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 20 | 95.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.76% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.34MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/images.png | 4.09KB | 1.82KB | ▼ 55.60% |
screenshot-1.png | 63.28KB | 20.78KB | ▼ 67.17% |
screenshot-4.png | 51.29KB | 14.48KB | ▼ 71.76% |
images/audio.png | 3.88KB | 1.58KB | ▼ 59.35% |
images/awsm-logo.png | 9.35KB | 4.69KB | ▼ 49.81% |