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.02MB] [CPU: ▼5.16ms] Passed 4 tests
A check of server-side resources used by Amazon Link Engine
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.83 ▼3.38 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.27 ▼12.46 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.24 ▲3.80 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 82.97 ▼8.55 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.88 ▲3.77 |
Amazon Link Engine /wp-admin/options-general.php?page=amazon-link-engine | 3.33 | 30.54 |
Server storage [IO: ▲1.17MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 17 new options
New WordPress options |
---|
genius_ale_tsid |
genius_ale_liking |
can_compress_scripts |
widget_theysaidso_widget |
genius_ale_urls_on_click |
widget_recent-comments |
genius_ale_domain |
genius_ale_api_secret |
genius_ale_db_version |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Amazon Link Engine: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲194 | 13.75 ▼0.60 | 7.29 ▲5.51 | 43.00 ▼1.86 |
Dashboard /wp-admin | 2,223 ▲32 | 5.83 ▲0.97 | 105.69 ▲2.36 | 39.96 ▼3.84 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.06 ▲0.06 | 39.59 ▲3.42 | 35.33 ▲3.25 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.39 ▼0.19 | 665.32 ▼17.13 | 59.25 ▼27.06 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.02 | 98.79 ▲3.61 | 42.15 ▲0.49 |
Amazon Link Engine /wp-admin/options-general.php?page=amazon-link-engine | 1,304 | 1.72 | 31.70 | 43.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- genius_ale_install_date
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/amazon-link-engine/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/amazon-link-engine/amazon-link-engine.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (12 tag instead of maximum 10)
- Screenshots: Add an image for screenshot #1 (**The Results:** Each user gets sent to the correct item in their local store. This is an example of a user from the United States clicking your link. They’re sent to [amazon.com](http://www.amazon.com) with your US Associates ID attached.)
amazon-link-engine/amazon-link-engine.php Passed 13 tests
The main PHP script in "Amazon Link Engine" version 1.4.1 is automatically included on every request by WordPress
114 characters long description:
Automatically optimizes Amazon product links for your global audience and allows you to earn commissions on sales.
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
Success! There were no dangerous files found in this plugin901 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 230 | 221 | 901 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 1.10MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 266.38KB | 75.76KB | ▼ 71.56% |
screenshot-6.png | 278.24KB | 77.63KB | ▼ 72.10% |
img/thumbup.png | 0.72KB | 0.93KB | 0.00% |
img/thumbdown.png | 0.76KB | 0.96KB | 0.00% |
screenshot-2.png | 164.14KB | 43.93KB | ▼ 73.24% |