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
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/dreamhost-affiliates/dreamer.php+247
Methods with the same name as their class will not be constructors in a future version of PHP; Dreamer_Widget has a deprecated constructor
Server metrics [RAM: ▼1.86MB] [CPU: ▼53.93ms] Passed 4 tests
This is a short check of server-side resources used by Affiliate Integration Dreamhost
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.33 | 4.51 ▼38.66 |
Dashboard /wp-admin | 2.16 ▼1.15 | 6.05 ▼41.91 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.87 ▼45.89 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 5.30 ▼89.27 |
Media Library /wp-admin/upload.php | 2.16 ▼1.08 | 5.78 ▼28.92 |
Dreamhost Affiliate Setup /wp-admin/options-general.php?page=dreamer_options_page | 2.16 | 5.44 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_dreamer_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Affiliate Integration Dreamhost
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▼0.10 | 1.72 ▼0.03 | 38.49 ▼1.74 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼0.02 | 111.38 ▼4.91 | 45.47 ▲6.03 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.03 | 40.19 ▼0.71 | 34.93 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.40 ▲0.40 | 653.49 ▼44.29 | 58.80 ▲0.18 |
Media Library /wp-admin/upload.php | 1,389 ▲7 | 4.19 ▼0.04 | 97.91 ▼2.29 | 42.10 ▼1.61 |
Dreamhost Affiliate Setup /wp-admin/options-general.php?page=dreamer_options_page | 1,197 | 1.69 | 29.77 | 36.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/dreamhost-affiliates/dreamer.php+247
Methods with the same name as their class will not be constructors in a future version of PHP; Dreamer_Widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-comments
- widget_dreamer_widget
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=dreamer_options_page
- > Deprecated in wp-content/plugins/dreamhost-affiliates/dreamer.php+247
Methods with the same name as their class will not be constructors in a future version of PHP; Dreamer_Widget has a deprecated constructor
- 43 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dreamer_options_page
- > Notice in wp-content/plugins/dreamhost-affiliates/dreamer.php+156
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=dreamer_options_page
- > Deprecated in wp-content/plugins/dreamhost-affiliates/dreamer.php+286
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=dreamer_options_page
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in Dreamer_Widget is deprecated since version 4.3.0! Use __construct() instead.
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 have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dreamhost-affiliates/dreamer.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% 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:
- Screenshots: These screenshots have no corresponding images in /assets: #3 (Shows a banner in action.), #4 (Demonstration of the [dreamer] shortcode integration.)
- Plugin Name: Please specify the plugin name on the first line (
=== dreamhost-affiliates ===
)
dreamhost-affiliates/dreamer.php 85% from 13 tests
This is the main PHP file of "Affiliate Integration Dreamhost" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 359 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dreamhost-affiliates.php" instead of "dreamer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected244 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 26 | 244 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin