Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/dd-twitter-widget/inc/widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; dd_twitter has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼314.80ms] Passed 4 tests
Analyzing server-side resources used by DD-Twitter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.81 ▼0.91 | 5.15 ▼20.64 |
Dashboard /wp-admin | 1.83 ▼1.22 | 5.52 ▼35.49 |
Posts /wp-admin/edit.php | 1.83 ▼1.27 | 6.32 ▼41.51 |
Add New Post /wp-admin/post-new.php | 1.83 ▼3.60 | 5.90 ▼1,146.18 |
Media Library /wp-admin/upload.php | 1.83 ▼1.17 | 5.84 ▼36.03 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_dd_twitter |
Browser metrics Passed 4 tests
A check of browser resources used by DD-Twitter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,685 ▲81 | 15.88 ▲0.31 | 8.66 ▼0.57 | 48.51 ▼4.33 |
Dashboard /wp-admin | 2,966 ▲116 | 5.94 ▲0.10 | 134.15 ▼1.77 | 104.93 ▼6.28 |
Posts /wp-admin/edit.php | 2,713 ▲10 | 2.69 ▼0.00 | 69.99 ▲3.24 | 94.39 ▲5.40 |
Add New Post /wp-admin/post-new.php | 1,658 ▲5 | 18.47 ▼0.39 | 364.70 ▼31.35 | 107.43 ▲2.38 |
Media Library /wp-admin/upload.php | 1,782 ▲7 | 5.02 ▲0.02 | 158.30 ▲1.77 | 105.51 ▼4.35 |
DD Twitter /wp-admin/dd-twitter.php | 26 | 0.90 | 0.09 | 11.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/dd-twitter-widget/inc/widget.php+9
Methods with the same name as their class will not be constructors in a future version of PHP; dd_twitter has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 1 option
- widget_dd_twitter
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dd-twitter-widget/inc/setting_page.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dd-twitter-widget/inc/widget.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dd-twitter-widget/inc/setting_page.php:9
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/dd-twitter.php
- > Network (severe)
wp-admin/dd-twitter.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #3 (screenshot-3.png), #4 (screenshot-5.png)
dd-twitter-widget/dd_twitter.php 92% from 13 tests
"DD-Twitter" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("dd-twitter-widget.php" instead of "dd_twitter.php")
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 plugin917 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 225 | 356 | 873 |
SVG | 1 | 0 | 0 | 36 |
CSS | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 10 | 12.50% |
▷ Public methods | 69 | 86.25% |
▷ Protected methods | 2 | 2.50% |
▷ Private methods | 9 | 11.25% |
Functions | 8 | |
▷ Named functions | 8 | 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 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected