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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.34ms] Passed 4 tests
Server-side resources used by WP Affiliate Card
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.65 ▼4.35 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.86 ▼1.30 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.06 ▼3.41 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 93.89 ▲0.01 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.07 ▼0.28 |
アフィカード /wp-admin/options-general.php?page=affiliate-card | 3.23 | 31.39 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
affiliate_card_option |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Affiliate Card
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.35 ▼0.01 | 2.00 ▲0.16 | 41.84 ▼5.69 |
Dashboard /wp-admin | 2,205 ▲25 | 5.63 ▼0.06 | 84.84 ▼14.18 | 46.05 ▲1.65 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 1.97 ▼0.07 | 39.05 ▲0.99 | 40.23 ▲3.57 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 23.07 ▲0.06 | 702.12 ▲32.26 | 57.95 ▲9.56 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.22 ▲0.00 | 98.85 ▼17.63 | 47.07 ▼1.00 |
アフィカード /wp-admin/options-general.php?page=affiliate-card | 890 | 2.01 | 23.48 | 80.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=affiliate-card
- > Notice in wp-content/plugins/wp-affiliate-card/adminoption.php+5
Undefined index: ac_option
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: yahoo, rakuten, amazon, yodobashi, affiliate
wp-affiliate-card/wp-affiliate-card.php Passed 13 tests
The main PHP file in "WP Affiliate Card" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
17 characters long description:
WP Affiliate Card
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin810 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 23 | 9 | 323 |
CSS | 2 | 66 | 31 | 289 |
PHP | 2 | 35 | 19 | 198 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
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
There are no PNG files in this plugin