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.06MB] [CPU: ▼9.65ms] Passed 4 tests
A check of server-side resources used by WordPress.org Plugin/Theme Information Embed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 44.83 ▲8.20 |
Dashboard /wp-admin | 3.37 ▲0.03 | 43.88 ▼16.18 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 45.92 ▼1.60 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 81.77 ▼20.92 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.77 ▲0.10 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
wpdotorg_oembed_key |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress.org Plugin/Theme Information Embed
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.41 ▼0.94 | 1.63 ▼0.06 | 40.72 ▲0.92 |
Dashboard /wp-admin | 2,209 ▲18 | 4.87 ▼1.03 | 108.04 ▲7.43 | 35.53 ▼9.66 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.06 ▲0.01 | 39.58 ▲4.88 | 35.60 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,514 ▼6 | 17.50 ▼5.70 | 668.65 ▼13.77 | 48.71 ▼3.41 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.22 ▼0.01 | 96.96 ▼11.95 | 44.19 ▼1.15 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- wpdotorg_oembed_key
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wporg-plugin-embed/wpdotorg-api.php:29
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 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
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #1, #2 in wporg-plugin-embed/assets to your readme.txt
wporg-plugin-embed/wpdotorg-embed.php 92% from 13 tests
The main PHP script in "WordPress.org Plugin/Theme Information Embed" version 1.4 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wporg-plugin-embed.php" instead of "wpdotorg-embed.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin246 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 136 | 122 | 233 |
CSS | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 15.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 68.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 31.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 13.89KB | 6.63KB | ▼ 52.28% |
images/wordpress-logo-notext-rgb.png | 1.38KB | 1.29KB | ▼ 6.73% |
screenshot-2.png | 23.49KB | 9.75KB | ▼ 58.48% |