Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/google-document-embedder/gviewer.php+263
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.13MB] [CPU: ▲0.98ms] Passed 4 tests
An overview of server-side resources used by Google Doc Embedder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 39.54 ▼0.07 |
Dashboard /wp-admin | 3.45 ▲0.15 | 51.24 ▲0.99 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 53.52 ▲6.62 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 103.27 ▲4.51 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.87 ▼1.53 |
GDE Settings /wp-admin/options-general.php?page=gde-settings | 3.44 | 38.05 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 55 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_gde_profiles |
wp_gde_secure |
New WordPress options |
---|
gde_options |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Google Doc Embedder: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.16 ▼0.19 | 1.58 ▼0.29 | 43.01 ▼0.74 |
Dashboard /wp-admin | 2,199 ▲19 | 5.61 ▼0.03 | 93.95 ▲3.58 | 39.52 ▼2.22 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.02 ▲0.04 | 40.90 ▲4.52 | 36.20 ▲1.71 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.64 ▲0.04 | 680.95 ▼13.82 | 59.02 ▲3.45 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.21 ▲0.01 | 101.29 ▼6.47 | 44.90 ▼1.60 |
GDE Settings /wp-admin/options-general.php?page=gde-settings | 1,489 | 1.90 | 36.81 | 106.63 |
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 did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 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
Please fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/google-document-embedder/uninstall.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (Default appearance of embedded viewer (cropped)), #2 (Enhanced viewer toolbar showing option to view full screen in same window), #3 (Enhanced viewer colors can be customized using basic settings or your own CSS file. This "dark" template is included as an example.), #4 (Preview of the settings page (portion of profile edit page)), #5 (TinyMCE Editor integration)
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
google-document-embedder/gviewer.php 85% from 13 tests
The primary PHP file in "Google Doc Embedder" version 2.6.4 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("google-document-embedder.php" instead of "gviewer.php")
- Description: The description should be shorter than 140 characters (currently 150 characters long)
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
There were no executable files found in this plugin7,438 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 10 | 2,261 | 2,952 | 5,130 |
PHP | 13 | 313 | 406 | 1,606 |
JavaScript | 2 | 48 | 32 | 397 |
CSS | 3 | 61 | 30 | 292 |
HTML | 1 | 4 | 0 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.14MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/gde-dark-m-sprites.png | 1.08KB | 0.99KB | ▼ 8.42% |
screenshot-2.png | 2.28KB | 1.43KB | ▼ 37.45% |
img/gde-button.png | 0.85KB | 0.76KB | ▼ 11.31% |
screenshot-1.png | 21.58KB | 8.86KB | ▼ 58.97% |
img/sprite-fullscr.png | 0.36KB | 0.21KB | ▼ 42.78% |