Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.68ms] Passed 4 tests
A check of server-side resources used by Embedder For Google Drive
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 41.25 ▼2.12 |
Dashboard /wp-admin | 3.40 ▲0.09 | 45.19 ▼3.23 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.97 ▼0.05 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 87.00 ▼17.31 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.04 ▲4.78 |
Embedder For Google Drive /wp-admin/options-general.php?page=gdm_list_options | 3.29 | 33.64 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Embedder For Google Drive: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲69 | 14.47 ▲0.07 | 2.00 ▲0.05 | 44.89 ▲2.76 |
Dashboard /wp-admin | 2,219 ▲31 | 5.91 ▲1.05 | 103.26 ▼9.01 | 41.99 ▼1.95 |
Posts /wp-admin/edit.php | 2,102 ▲10 | 1.99 ▼0.03 | 40.34 ▼2.42 | 37.41 ▼1.38 |
Add New Post /wp-admin/post-new.php | 6,934 ▲5,401 | 24.55 ▲1.63 | 938.15 ▲279.54 | 37.33 ▼22.98 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.24 ▲0.06 | 97.88 ▼7.11 | 41.89 ▼1.52 |
Embedder For Google Drive /wp-admin/options-general.php?page=gdm_list_options | 848 | 2.02 | 25.33 | 25.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/google-drive-embedder/google_drive_embedder.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
google-drive-embedder/google_drive_embedder.php 85% from 13 tests
The main file in "Embedder For Google Drive" v. 5.2.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 234 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("google-drive-embedder.php" instead of "google_drive_embedder.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,011 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 415 | 158 | 2,093 |
PHP | 2 | 137 | 64 | 564 |
CSS | 4 | 61 | 21 | 250 |
PO File | 1 | 31 | 32 | 104 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 60.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 43 | |
▷ Static methods | 1 | 2.33% |
▷ Public methods | 18 | 41.86% |
▷ Protected methods | 25 | 58.14% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icalsmalltrans.png | 0.54KB | 0.42KB | ▼ 22.59% |
images/gdm-media.png | 0.85KB | 0.76KB | ▼ 11.31% |
images/teamdrive.png | 1.21KB | 0.12KB | ▼ 89.93% |
images/ical.png | 0.64KB | 0.42KB | ▼ 34.45% |
images/search.png | 0.42KB | 0.40KB | ▼ 5.10% |