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
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wpx-affiliate-manager/wpx-affiliate-manager.php+309
Methods with the same name as their class will not be constructors in a future version of PHP; wpx_am_widget has a deprecated constructor
Server metrics [RAM: ▼1.87MB] [CPU: ▼56.35ms] Passed 4 tests
Analyzing server-side resources used by WPX Affiliate Manager
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.12 ▼1.35 | 4.54 ▼37.43 |
Dashboard /wp-admin | 2.14 ▼1.17 | 6.79 ▼47.89 |
Posts /wp-admin/edit.php | 2.14 ▼1.22 | 5.51 ▼47.59 |
Add New Post /wp-admin/post-new.php | 2.14 ▼3.75 | 5.82 ▼92.48 |
Media Library /wp-admin/upload.php | 2.14 ▼1.09 | 4.87 ▼29.08 |
WPX Affiliate Manager /wp-admin/options-general.php?page=wpx-affiliate-manager/wpx-affiliate-manager.php | 2.14 | 6.11 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_wpx_am_widget |
Browser metrics Passed 4 tests
WPX Affiliate Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.42 ▲0.14 | 1.90 ▲0.29 | 45.56 ▲1.14 |
Dashboard /wp-admin | 2,195 ▲15 | 5.54 ▼0.13 | 88.10 ▲2.16 | 37.19 ▼4.28 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.98 ▼0.01 | 34.70 ▼8.09 | 37.45 ▼6.46 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.35 ▲0.20 | 677.83 ▼16.24 | 60.92 ▲1.93 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.21 ▼0.00 | 102.02 ▼10.79 | 42.28 ▼6.57 |
WPX Affiliate Manager /wp-admin/options-general.php?page=wpx-affiliate-manager/wpx-affiliate-manager.php | 1,113 | 2.03 | 28.62 | 27.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wpx-affiliate-manager/wpx-affiliate-manager.php+309
Methods with the same name as their class will not be constructors in a future version of PHP; wpx_am_widget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_wpx_am_widget
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpx-affiliate-manager/wpx-affiliate-manager.php
- > Deprecated in wp-content/plugins/wpx-affiliate-manager/wpx-affiliate-manager.php+309
Methods with the same name as their class will not be constructors in a future version of PHP; wpx_am_widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=wpx-affiliate-manager/wpx-affiliate-manager.php
- > Deprecated in wp-content/plugins/wpx-affiliate-manager/wpx-affiliate-manager.php+392
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=wpx-affiliate-manager/wpx-affiliate-manager.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in wpx_am_widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=wpx-affiliate-manager/wpx-affiliate-manager.php
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wpx-affiliate-manager/wpx-affiliate-manager.php
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wpx-affiliate-manager/wpx-affiliate-manager.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Widget configuration display), #2 (Widget Output)
wpx-affiliate-manager/wpx-affiliate-manager.php Passed 13 tests
The entry point to "WPX Affiliate Manager" version 0.4.1 is a PHP file that has certain tags in its header comment area
118 characters long description:
WPX Affiliate Manager allows you to integrate affiliate 125 x 125 images side by side into your site through a widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin352 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 51 | 22 | 321 |
JavaScript | 1 | 2 | 0 | 18 |
CSS | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 99.97KB | 38.37KB | ▼ 61.62% |
screenshot-1.png | 28.44KB | 15.27KB | ▼ 46.32% |