Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.33ms] Passed 4 tests
An overview of server-side resources used by AffiliateWP - Affiliate Area Tabs
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.72 ▼3.91 |
Dashboard /wp-admin | 3.36 ▲0.06 | 46.05 ▼7.57 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.16 ▲0.50 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.20 ▼14.00 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.22 ▲0.15 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by AffiliateWP - Affiliate Area Tabs
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.23 ▼0.11 | 1.69 ▼0.10 | 42.61 ▼1.68 |
Dashboard /wp-admin | 2,201 ▲21 | 5.56 ▼0.09 | 89.79 ▼11.28 | 40.49 ▼5.87 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.00 | 40.38 ▲3.40 | 36.28 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.42 ▲0.10 | 692.72 ▲31.56 | 51.91 ▼1.80 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.21 ▲0.03 | 99.42 ▼6.90 | 43.16 ▼1.24 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/affiliatewp-affiliate-area-tabs/includes/class-admin.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliatewp-affiliate-area-tabs/includes/class-compatibility.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/affiliatewp-affiliate-area-tabs/includes/class-upgrades.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Tags: There are too many tags (16 tag instead of maximum 10)
affiliatewp-affiliate-area-tabs/affiliatewp-affiliate-area-tabs.php 85% from 13 tests
The main PHP script in "AffiliateWP - Affiliate Area Tabs" version 1.4.1 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: Prefix the domain path with a forward slash character ("/languages")
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected4,636 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 3,011 |
PHP | 11 | 515 | 1,469 | 1,243 |
JavaScript | 3 | 97 | 35 | 223 |
CSS | 2 | 0 | 0 | 83 |
LESS | 1 | 20 | 0 | 76 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 2 | 20.00% |
▷ Concrete classes | 8 | 80.00% |
▷ Final classes | 1 | 12.50% |
Methods | 113 | |
▷ Static methods | 2 | 1.77% |
▷ Public methods | 71 | 62.83% |
▷ Protected methods | 22 | 19.47% |
▷ Private methods | 20 | 17.70% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected