Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.40ms] Passed 4 tests
Analyzing server-side resources used by Offer IT Affiliate Tracking
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.44 ▼2.13 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.67 ▼2.08 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.98 ▼2.63 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 82.24 ▼14.77 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 36.63 ▲2.84 |
OfferIT setup /wp-admin/options-general.php?page=offer-it | 3.27 | 31.46 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: 1 new table, 32 new options
New tables |
---|
wp_offerit_log |
New WordPress options |
---|
offer_it_map_custom1 |
offer_it_map_phone |
widget_recent-posts |
offer_it_map_address2 |
offer_it_tracking_code |
db_upgraded |
offer_it_map_total |
widget_theysaidso_widget |
offer_it_map_city |
offer_it_domain |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Offer IT Affiliate Tracking
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.20 ▼1.18 | 1.81 ▼0.06 | 44.45 ▼1.63 |
Dashboard /wp-admin | 2,210 ▲19 | 5.87 ▲0.93 | 107.32 ▲1.84 | 40.93 ▼1.13 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.13 ▲0.14 | 39.56 ▼2.23 | 33.70 ▼0.45 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.37 ▼4.72 | 618.46 ▼58.40 | 55.77 ▲2.82 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▼0.03 | 96.97 ▼4.35 | 42.41 ▼1.90 |
OfferIT setup /wp-admin/options-general.php?page=offer-it | 1,214 | 2.05 | 22.51 | 45.20 |
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 uninstall procedure failed, leaving 1 table in the database
- wp_offerit_log
- Zombie WordPress options were found after uninstall: 32 options
- offer_it_map_phone
- db_upgraded
- offer_it_db_column
- offer_it_log
- widget_recent-posts
- offer_it_map_state
- offer_it_tracking_code
- offer_it_map_custom2
- offer_it_map_custom3
- widget_recent-comments
- ...
Smoke tests 75% 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 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/offerit-affiliate-tracking/offer-it.class.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/offerit-affiliate-tracking/offer-it-admin.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: Screenshot #1 (This is the screenshot of admin panel: screenshot-1.png.) image missing
offerit-affiliate-tracking/offer-it.php 85% from 13 tests
"Offer IT Affiliate Tracking" version 1.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:
- Description: Please don't use more than 140 characters for the plugin description (currently 318 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("offerit-affiliate-tracking.php" instead of "offer-it.php")
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
Good job! No executable or dangerous file extensions detected407 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 98 | 56 | 397 |
Markdown | 1 | 4 | 0 | 10 |
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.28 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
1 PNG file occupies 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 159.05KB | 48.51KB | ▼ 69.50% |