Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.47ms] Passed 4 tests
This is a short check of server-side resources used by WP Profitshare Advertisers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.89 ▼3.23 |
Dashboard /wp-admin | 3.31 ▲0.00 | 50.19 ▼1.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.13 ▼1.89 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.15 ▼19.41 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.50 ▲2.07 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Profitshare Advertisers
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 13.27 ▼1.29 | 4.46 ▲2.42 | 40.87 ▼7.18 |
Dashboard /wp-admin | 2,206 ▲18 | 5.91 ▲0.80 | 102.19 ▼14.23 | 39.32 ▼4.74 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▲0.00 | 34.36 ▼2.38 | 35.77 ▲3.00 |
Add New Post /wp-admin/post-new.php | 1,514 ▼7 | 17.60 ▼5.63 | 671.10 ▼10.59 | 54.41 ▲3.51 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.21 ▼0.01 | 96.93 ▼3.20 | 44.16 ▲2.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-profitshare-advertisers/includes/templates/pwa_categories_template.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/wp-profitshare-advertisers/includes/controllers/class-PWA-plugin.php:62
- > PHP Fatal error
Uncaught Error: Class 'PWA_Validator' not found in wp-content/plugins/wp-profitshare-advertisers/includes/validators/validator-PWA-wordpress-category.php:3
- > PHP Fatal error
Uncaught Error: Class 'PWA_Model' not found in wp-content/plugins/wp-profitshare-advertisers/includes/models/model-PWA-wordpress-categories.php:3
- > PHP Fatal error
Uncaught Error: Class 'PWA_Model' not found in wp-content/plugins/wp-profitshare-advertisers/includes/models/model-PWA-categories.php:3
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: affiliates, conversie, marketing afiliat, advertisers, advertiseri...
wp-profitshare-advertisers/wp-profitshare-advertisers.php Passed 13 tests
"WP Profitshare Advertisers" version 1.3.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
Profitshare module for wordpress woocommerce
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
No dangerous file extensions were detected1,642 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 333 | 327 | 1,313 |
CSS | 2 | 42 | 0 | 210 |
JavaScript | 2 | 24 | 10 | 119 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 2 | 16.67% |
▷ Concrete classes | 10 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 75 | 82.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 17.58% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 1 | 3.45% |
▷ Class constants | 28 | 96.55% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 47.61KB | 27.18KB | ▼ 42.91% |
screenshot-1.png | 46.92KB | 25.71KB | ▼ 45.20% |
screenshot-3.png | 46.91KB | 25.62KB | ▼ 45.38% |