Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▲0.34ms] Passed 4 tests
An overview of server-side resources used by CJ Affiliate Export plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 38.31 ▲1.28 |
Dashboard /wp-admin | 3.42 ▲0.11 | 50.72 ▼2.37 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 50.98 ▲3.13 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 99.38 ▼0.68 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.17 ▲4.78 |
CJ export /wp-admin/tools.php?page=cjexport | 3.32 | 30.78 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
CJAffiliate_plugin_export |
widget_theysaidso_widget |
CJAffiliate_plugin_exportTransfer |
Browser metrics Passed 4 tests
Checking browser requirements for CJ Affiliate Export plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲49 | 14.41 ▼0.10 | 1.60 ▲0.07 | 41.37 ▼3.12 |
Dashboard /wp-admin | 2,216 ▲36 | 5.68 ▲0.01 | 93.00 ▲0.06 | 41.25 ▼9.12 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.18 ▲0.17 | 36.99 ▲0.86 | 35.99 ▼2.77 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 22.95 ▼0.50 | 622.17 ▼67.21 | 59.30 ▲8.96 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.26 ▲0.03 | 96.98 ▼17.30 | 41.56 ▼5.37 |
CJ export /wp-admin/tools.php?page=cjexport | 1,116 | 1.74 | 29.93 | 37.82 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=cjexport
- > Notice in wp-content/plugins/cjaffiliate-export/include/page-export.php+37
Undefined index: cron_schedules
- > GET request to /wp-admin/tools.php?page=cjexport
- > Notice in wp-content/plugins/cjaffiliate-export/include/page-export.php+43
Undefined index: cron_schedules_time
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/cjaffiliate-export/include/page-export.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cjaffiliate-export/include/class_productExport.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cjaffiliate-export/include/Cj_SettingFields.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
8 plugin tags: ftp, cj affiliate, file, cron, xml...
cjaffiliate-export/CJ-AffiliateExport.php 92% from 13 tests
The primary PHP file in "CJ Affiliate Export plugin" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("cjaffiliate-export.php" instead of "CJ-AffiliateExport.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected784 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 133 | 184 | 603 |
CSS | 1 | 24 | 0 | 127 |
JavaScript | 2 | 8 | 15 | 54 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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.41 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 19 | 76.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 24.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshots/1.png | 32.76KB | 14.15KB | ▼ 56.82% |