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.03MB] [CPU: ▼3.94ms] Passed 4 tests
An overview of server-side resources used by Aliffiliate Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.68 ▲2.51 |
Dashboard /wp-admin | 3.34 ▼0.00 | 46.91 ▼11.34 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.02 ▼1.52 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 96.13 ▼2.39 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.54 ▼0.51 |
Settings /wp-admin/admin.php?page=aliffiliate-shortcodes-settings | 3.23 | 31.15 |
Create shortodes /wp-admin/admin.php?page=aliffiliate-shortcodes-create | 3.24 | 31.85 |
Premium Plugin /wp-admin/admin.php?page=aliffiliate-shortcodes-premium | 3.24 | 31.60 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Aliffiliate Shortcodes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 13.19 ▼1.39 | 1.77 ▼0.01 | 41.89 ▲2.89 |
Dashboard /wp-admin | 2,237 ▲46 | 5.83 ▼0.01 | 96.87 ▼9.71 | 41.08 ▼2.39 |
Posts /wp-admin/edit.php | 2,123 ▲31 | 1.99 ▼0.04 | 38.71 ▼2.54 | 36.51 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,567 ▲38 | 18.27 ▼0.06 | 626.21 ▲10.62 | 51.97 ▼1.22 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.25 ▲0.03 | 97.63 ▼4.71 | 41.15 ▼2.24 |
Settings /wp-admin/admin.php?page=aliffiliate-shortcodes-settings | 872 | 1.74 | 26.35 | 45.41 |
Create shortodes /wp-admin/admin.php?page=aliffiliate-shortcodes-create | 1,055 | 1.90 | 30.30 | 29.14 |
Premium Plugin /wp-admin/admin.php?page=aliffiliate-shortcodes-premium | 1,509 | 9.57 | 284.03 | 88.37 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/aliffiliate-shortcodes/views/bottom.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aliffiliate-shortcodes/views/top.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
- Tags: No valid plugin tags found
aliffiliate-shortcodes/aliffiliate-shortcodes.php 92% from 13 tests
The primary PHP file in "Aliffiliate Shortcodes" version 0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: Please use more than 10 characters for the plugin description (currently 0 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin727 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 51 | 22 | 410 |
CSS | 2 | 58 | 7 | 316 |
JavaScript | 1 | 0 | 3 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 12 | 100.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
18 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
css/images/ui-bg_highlight-soft_75_ffe45c_1x100.png | 0.32KB | 0.18KB | ▼ 42.38% |
images/wp_menu_icon.png | 0.53KB | 0.69KB | 0.00% |
css/images/ui-bg_highlight-soft_100_eeeeee_1x100.png | 0.27KB | 0.14KB | ▼ 47.84% |
images/728.png | 51.76KB | 20.09KB | ▼ 61.19% |