Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼9.56ms] Passed 4 tests
An overview of server-side resources used by Affiliaterg - Affiliate Products Booster Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 39.59 ▼4.08 |
Dashboard /wp-admin | 3.48 ▲0.18 | 45.56 ▼5.37 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 47.66 ▲0.56 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 83.10 ▼29.33 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 35.69 ▲1.35 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Affiliaterg - Affiliate Products Booster Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲161 | 13.77 ▼0.61 | 7.67 ▲5.81 | 37.40 ▼6.59 |
Dashboard /wp-admin | 2,210 ▲30 | 5.59 ▲0.01 | 91.23 ▼0.72 | 40.83 ▼2.63 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.97 ▼0.04 | 39.97 ▲1.01 | 36.68 ▲1.24 |
Add New Post /wp-admin/post-new.php | 6,420 ▲4,894 | 28.59 ▲5.63 | 876.12 ▲257.90 | 37.16 ▼17.68 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.23 ▲0.09 | 100.74 ▲1.87 | 41.16 ▼0.45 |
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 detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/affiliate-products-blocks/admin/admin.php:11
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6, #7 in affiliate-products-blocks/assets to your readme.txt
affiliate-products-blocks/plugin.php 69% from 13 tests
The entry point to "Affiliaterg - Affiliate Products Booster Blocks" version 2.1.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("affiliate-products-blocks.php" instead of "plugin.php")
- Requires PHP: Required version does not match the one declared in readme.txt ("5.6" instead of "7.0")
- Requires at least: Required version does not match the one declared in readme.txt ("5.6" instead of "5.7")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin7,448 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 71 | 100 | 4,870 |
JSON | 14 | 0 | 0 | 1,394 |
Sass | 10 | 71 | 1 | 813 |
PHP | 10 | 39 | 72 | 217 |
CSS | 13 | 22 | 7 | 154 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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