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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.91ms] Passed 4 tests
This is a short check of server-side resources used by Simple Emzon Links
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.67 ▲2.13 |
Dashboard /wp-admin | 3.33 ▲0.02 | 42.18 ▼6.70 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.86 ▲4.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.72 ▼13.92 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 31.62 ▼5.13 |
About /wp-admin/admin.php?page=salfwp-about | 3.22 | 28.71 |
Configuration /wp-admin/admin.php?page=simple-emzon-links | 3.22 | 29.74 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Emzon Links
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.16 ▼1.40 | 1.60 ▼0.21 | 38.54 ▼7.28 |
Dashboard /wp-admin | 2,234 ▲49 | 5.83 ▲0.99 | 112.21 ▲7.76 | 86.49 ▲44.72 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 1.98 ▼0.06 | 35.30 ▼1.76 | 33.55 ▲0.66 |
Add New Post /wp-admin/post-new.php | 6,455 ▲4,936 | 20.70 ▼2.56 | 930.48 ▲272.77 | 38.45 ▼6.29 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.15 ▼0.05 | 107.40 ▼3.50 | 44.39 ▼4.34 |
About /wp-admin/admin.php?page=salfwp-about | 850 | 2.01 | 26.74 | 45.24 |
Configuration /wp-admin/admin.php?page=simple-emzon-links | 904 | 2.17 | 22.54 | 29.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-emzon-links/simple-emzon-links.php:62
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: amazon associates, amazon affiliate, amazon, amazon product advertising api
simple-emzon-links/simple-emzon-links.php 92% from 13 tests
The primary PHP file in "Simple Emzon Links" version 0.2.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- 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 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected995 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 248 | 236 | 701 |
PO File | 1 | 36 | 37 | 117 |
CSS | 3 | 13 | 0 | 78 |
JavaScript | 1 | 8 | 6 | 76 |
JSON | 1 | 0 | 0 | 23 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 17 | 33.33% |
▷ Public methods | 30 | 58.82% |
▷ Protected methods | 3 | 5.88% |
▷ Private methods | 18 | 35.29% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/salfwp-icon.png | 1.12KB | 1.15KB | 0.00% |
assets/images/salfwp-iconx.png | 1.12KB | 1.15KB | 0.00% |