Benchmarks
Plugin footprint 65% 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.19MB] [CPU: ▼5.48ms] Passed 4 tests
Server-side resources used by WP Embed Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.24 | 45.49 ▲5.09 |
Dashboard /wp-admin | 3.52 ▲0.22 | 49.03 ▼5.16 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 49.34 ▼8.81 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 92.40 ▼8.96 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 36.28 ▲1.03 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 40 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_wpew_data |
New WordPress options |
---|
wpew_settings |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
wpew_db_version |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP Embed Widgets
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲33 | 14.10 ▼0.04 | 1.76 ▼0.23 | 43.99 ▲2.51 |
Dashboard /wp-admin | 2,203 ▲26 | 5.56 ▼0.25 | 90.89 ▼13.55 | 38.48 ▼3.92 |
Posts /wp-admin/edit.php | 2,105 ▲2 | 1.99 ▲0.01 | 40.23 ▲5.69 | 36.59 ▲2.08 |
Add New Post /wp-admin/post-new.php | 6,207 ▲4,682 | 18.92 ▼4.64 | 925.19 ▲258.46 | 63.03 ▲8.80 |
Media Library /wp-admin/upload.php | 1,408 ▲11 | 4.19 ▼0.01 | 101.37 ▼4.97 | 43.62 ▼0.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_wpew_data
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-embed-widgets/wp-embed-widgets.php:41
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: embed, widget shortcode, page, shortcode, widget
wp-embed-widgets/wp-embed-widgets.php 92% from 13 tests
The main PHP script in "WP Embed Widgets" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires PHP: Required version must match the one declared in readme.txt ("5.6" instead of "5.4")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,008 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 296 | 498 | 952 |
PO File | 1 | 13 | 15 | 55 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 8.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 106 | |
▷ Static methods | 33 | 31.13% |
▷ Public methods | 101 | 95.28% |
▷ Protected methods | 2 | 1.89% |
▷ Private methods | 3 | 2.83% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 5 | 71.43% |
▷ Class constants | 2 | 28.57% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin