Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.87ms] Passed 4 tests
Analyzing server-side resources used by Dan's Viewer for Google Drive
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.66 ▼3.33 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.71 ▼8.62 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.50 ▲5.94 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.45 ▲3.69 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.79 ▲4.77 |
Dan's gDrive /wp-admin/tools.php?page=dans-gdrive-settings | 3.20 | 31.91 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Dan's Viewer for Google Drive
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲175 | 13.59 ▼0.78 | 4.98 ▲3.30 | 39.82 ▼7.25 |
Dashboard /wp-admin | 2,210 ▲22 | 5.90 ▲1.00 | 111.60 ▲6.34 | 42.38 ▲6.03 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.14 | 39.33 ▲4.32 | 35.10 ▼1.91 |
Add New Post /wp-admin/post-new.php | 1,534 ▲14 | 18.48 ▼4.71 | 603.79 ▼44.22 | 62.40 ▲12.60 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▼0.01 | 96.15 ▼0.50 | 41.34 ▼3.11 |
Dan's gDrive /wp-admin/tools.php?page=dans-gdrive-settings | 877 | 2.18 | 26.34 | 28.38 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/tools.php?page=dans-gdrive-settings
- > Warning in wp-content/plugins/dans-gdrive-viewer/dans-gdrive-viewer.php+111
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/tools.php?page=dans-gdrive-settings
- > Notice in wp-content/plugins/dans-gdrive-viewer/dans-gdrive-viewer.php+123
Trying to access array offset on value of type bool
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dans-gdrive-viewer/dans-gdrive-viewer.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: share files, dan, google drive, gdrive, embed...
dans-gdrive-viewer/dans-gdrive-viewer.php Passed 13 tests
The main PHP script in "Dan's Viewer for Google Drive" version 1.2 is automatically included on every request by WordPress
66 characters long description:
A custom Google Drive Viewer w/ Folder Transversal and File Export
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin247 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 121 | 34 | 198 |
JavaScript | 1 | 16 | 1 | 49 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin