Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.33ms] Passed 4 tests
An overview of server-side resources used by Google Docs oEmbed
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.79 ▼5.55 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.79 ▼6.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.02 ▲1.92 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.20 ▲1.08 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.92 ▲2.52 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Google Docs oEmbed
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.16 | 4.99 ▲3.15 | 44.68 ▼2.18 |
Dashboard /wp-admin | 2,206 ▲15 | 4.85 ▼0.04 | 110.06 ▲5.35 | 42.40 ▼3.38 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.05 | 41.12 ▲6.83 | 38.41 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,519 ▼5 | 23.12 ▲0.09 | 598.15 ▼73.08 | 56.39 ▲3.46 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.16 ▼0.05 | 100.21 ▼2.09 | 41.65 ▼7.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: oembed, presentation, document, embed, google...
google-docs-oembed/google-docs-oembed.php Passed 13 tests
The main PHP script in "Google Docs oEmbed" version 1.0.10 is automatically included on every request by WordPress
78 characters long description:
Embed Google documents, spreadsheets and presentations in your posts or pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected465 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 112 | 374 | 426 |
Markdown | 1 | 11 | 0 | 22 |
XML | 1 | 5 | 2 | 16 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 30 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.76% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin