Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼4.95ms] Passed 4 tests
Server-side resources used by RevOffers Advertiser Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.15 | 36.37 ▲0.78 |
Dashboard /wp-admin | 3.53 ▲0.18 | 48.32 ▼19.38 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 49.75 ▲2.89 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 87.76 ▼4.08 |
Media Library /wp-admin/upload.php | 3.45 ▲0.21 | 35.95 ▲3.56 |
RevOffers Network /wp-admin/options-general.php?page=revoffers-advertiser-integration | 3.43 | 33.16 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_plugin_revoffers_queue |
New WordPress options |
---|
widget_recent-posts |
revoffers_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by RevOffers Advertiser Integration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,129 ▲382 | 17.50 ▲2.86 | 14.95 ▲13.27 | 176.08 ▲139.03 |
Dashboard /wp-admin | 2,193 ▲15 | 5.60 ▼0.11 | 96.11 ▼20.72 | 41.21 ▼6.79 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.04 | 38.62 ▲0.99 | 36.17 ▲1.26 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.28 ▼0.43 | 635.41 ▲13.71 | 55.48 ▲5.16 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.22 ▲0.05 | 98.00 ▼1.05 | 42.09 ▼0.91 |
RevOffers Network /wp-admin/options-general.php?page=revoffers-advertiser-integration | 899 | 1.99 | 24.81 | 31.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/revoffers-advertiser-integration/export_orders.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function revoffers\\rest\\register_rest_route() in wp-content/plugins/revoffers-advertiser-integration/rest_api.php:183
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/revoffers-advertiser-integration/admin_page.php:18
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: tracking, affiliate, revoffers, katalys
revoffers-advertiser-integration/revoffers-advertiser-integration.php Passed 13 tests
This is the main PHP file of "RevOffers Advertiser Integration" version 1.5.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
90 characters long description:
Integrate RevOffers tracking snippet to reward influencers driving customers to your site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,567 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 285 | 649 | 1,554 |
JSON | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 5.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 66.67% |
▷ Protected methods | 2 | 11.11% |
▷ Private methods | 4 | 22.22% |
Functions | 57 | |
▷ Named functions | 43 | 75.44% |
▷ Anonymous functions | 14 | 24.56% |
Constants | 7 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 7 | 100.00% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/revoffers_dark.png | 19.13KB | 10.45KB | ▼ 45.36% |
images/logo.png | 1.27KB | 0.73KB | ▼ 42.17% |