Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.31ms] Passed 4 tests
A check of server-side resources used by Press Loft Affiliate Network
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 37.27 ▼6.96 |
Dashboard /wp-admin | 3.42 ▲0.12 | 44.85 ▼3.92 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.48 ▲1.93 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 83.84 ▼8.30 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.67 ▲3.11 |
Press Loft Affiliate Network /wp-admin/options-general.php?page=press-loft-affiliate-network | 3.31 | 30.30 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_press_loft_affiliate_network |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
pl_an_active |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Press Loft Affiliate Network
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲159 | 13.61 ▼1.03 | 7.92 ▲6.14 | 40.84 ▼2.68 |
Dashboard /wp-admin | 2,214 ▲26 | 4.85 ▼1.04 | 103.25 ▼5.57 | 38.04 ▼2.33 |
Posts /wp-admin/edit.php | 2,100 ▲11 | 2.00 ▲0.00 | 39.42 ▲0.32 | 34.18 ▼0.38 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 18.30 ▼4.70 | 598.16 ▼56.83 | 56.58 ▼6.83 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.25 ▼0.02 | 98.83 ▲0.34 | 41.98 ▼1.65 |
Press Loft Affiliate Network /wp-admin/options-general.php?page=press-loft-affiliate-network | 777 | 2.02 | 24.75 | 24.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 1 table in the database
- wp_press_loft_affiliate_network
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/press-loft-affiliate-network/public/partials/press-loft-affiliate-network-public-display.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/press-loft-affiliate-network/admin/partials/press-loft-affiliate-network-admin-options-header.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/press-loft-affiliate-network/admin/partials/press-loft-affiliate-network-admin-options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/press-loft-affiliate-network/admin/partials/press-loft-affiliate-network-admin-options-field-application-key.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/press-loft-affiliate-network/admin/partials/press-loft-affiliate-network-admin-woocommerce-not-installed.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/press-loft-affiliate-network/admin/partials/press-loft-affiliate-network-admin-options-field-affiliate-id.php:15
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== press-loft-affiliate-network ===
) - Contributors: Plugin contributors not specified
press-loft-affiliate-network/press-loft-affiliate-network.php Passed 13 tests
The entry point to "Press Loft Affiliate Network" version 1.0.5 is a PHP file that has certain tags in its header comment area
121 characters long description:
The Press Loft Affiliate Network plugin enables brands to track sales generated through the Press Loft affiliate network.
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
Good job! No executable or dangerous file extensions detected465 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 292 | 675 | 450 |
CSS | 2 | 3 | 7 | 9 |
JavaScript | 2 | 4 | 45 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin