Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.64MB] [CPU: ▲2.11ms] Passed 4 tests
Server-side resources used by No API Amazon Affiliate
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 46.80 ▲4.64 |
Dashboard /wp-admin | 4.01 ▲0.70 | 47.68 ▼0.33 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 52.79 ▲5.01 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.64 | 85.63 ▼0.89 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 38.50 ▲6.47 |
Apariencia /wp-admin/admin.php?page=no-api-amazon-affiliate/admin/options2.php | 3.95 | 39.15 |
Ayuda /wp-admin/admin.php?page=no-api-amazon-affiliate/admin/ayuda.php | 3.86 | 34.29 |
Productos Amazon /wp-admin/admin.php?page=no-api-amazon-affiliate/admin/items_amazon.php | 3.90 | 34.68 |
Ajustes /wp-admin/admin.php?page=no-api-amazon-affiliate/admin/options.php | 3.89 | 37.58 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 38 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_naaa_item_amazon |
wp_naaa_bestselleer_amazon |
wp_naaa_other_link |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
naaa_plugin_version |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for No API Amazon Affiliate
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲121 | 14.78 ▲0.41 | 2.01 ▲0.24 | 43.89 ▼0.01 |
Dashboard /wp-admin | 2,239 ▲54 | 4.85 ▼1.06 | 97.28 ▼17.92 | 39.52 ▼3.56 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.04 ▲0.03 | 40.15 ▲0.41 | 35.42 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,558 ▲44 | 23.18 ▲5.68 | 632.22 ▼57.79 | 49.96 ▼0.37 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.18 ▼0.06 | 100.71 ▼5.19 | 42.02 ▼3.97 |
Apariencia /wp-admin/admin.php?page=no-api-amazon-affiliate/admin/options2.php | 2,298 | 3.13 | 86.45 | 29.84 |
Ayuda /wp-admin/admin.php?page=no-api-amazon-affiliate/admin/ayuda.php | 1,054 | 2.01 | 23.82 | 32.13 |
Productos Amazon /wp-admin/admin.php?page=no-api-amazon-affiliate/admin/items_amazon.php | 1,104 | 1.95 | 27.46 | 36.94 |
Ajustes /wp-admin/admin.php?page=no-api-amazon-affiliate/admin/options.php | 1,086 | 2.06 | 24.30 | 25.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables detected upon uninstall: 1 table
- wp_naaa_other_link
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- naaa_plugin_version
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
Even though everything seems fine, this is not 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
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/no-api-amazon-affiliate/admin/items_amazon.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/no-api-amazon-affiliate/admin/ayuda.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/no-api-amazon-affiliate/admin/options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/no-api-amazon-affiliate/admin/options2.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 12 tag instead of maximum 10
no-api-amazon-affiliate/no-api-amazon-affiliate.php Passed 13 tests
The principal PHP file in "No API Amazon Affiliate" v. 4.4.0 is loaded by WordPress automatically on each request
107 characters long description:
Plugin de Afiliados de Amazon, SIN API. Crea bonitas cajas de productos de Amazon con tu Id de afiliación.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected20,084 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 1,743 | 84 | 11,053 |
JavaScript | 4 | 1,294 | 467 | 5,112 |
PHP | 9 | 625 | 588 | 3,612 |
Markdown | 1 | 17 | 0 | 248 |
XML | 2 | 0 | 0 | 59 |
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.45 |
Average class complexity | 193.50 |
▷ Minimum class complexity | 138.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 1 | 1.11% |
▷ Public methods | 75 | 83.33% |
▷ Protected methods | 15 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 33 | |
▷ Global constants | 33 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-menu.png | 1.58KB | 1.42KB | ▼ 10.22% |
assets/images/prime-2x.png | 0.92KB | 0.67KB | ▼ 26.79% |