Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.94ms] Passed 4 tests
An overview of server-side resources used by I Am Real Donald Trump Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.17 ▼3.76 |
Dashboard /wp-admin | 3.33 ▼0.02 | 51.09 ▼9.91 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.13 ▼0.04 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 100.30 ▼6.06 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 34.40 ▲3.32 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_i-am-real-donald-trump-widget |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for I Am Real Donald Trump Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲80 | 13.58 ▼0.72 | 1.98 ▲0.25 | 42.25 ▼1.08 |
Dashboard /wp-admin | 2,209 ▲21 | 4.87 ▼1.01 | 98.99 ▼10.27 | 38.51 ▼6.60 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.04 | 39.44 ▲0.12 | 35.08 ▼1.51 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.49 ▲0.87 | 614.34 ▼40.66 | 56.30 ▲4.69 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.19 | 94.32 ▼18.05 | 40.13 ▼3.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- widget_i-am-real-donald-trump-widget
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/i-am-real-donald-trump-widget/i-am-real-donald-trump-widget.php:28
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== i-am-real-donald-trump-widget ===
) - Screenshots: These screenshots do not have images: #1 (The I Am Real Donald Trump Widget form.), #2 (The I Am Real Donald Trump Widget as shown on an example blog, talking about lairs.)
i-am-real-donald-trump-widget/i-am-real-donald-trump-widget.php Passed 13 tests
This is the main PHP file of "I Am Real Donald Trump Widget" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
A widget that allows you to be Donald Trump.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin268 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 80 | 153 | 268 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 14.29% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 47.48KB | 12.90KB | ▼ 72.82% |
screenshot-2.png | 80.17KB | 23.33KB | ▼ 70.90% |