Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▲0.09ms] Passed 4 tests
Analyzing server-side resources used by Affiliate Products List by ConicPlex
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.49 ▲2.10 |
Dashboard /wp-admin | 3.35 ▲0.05 | 62.95 ▲9.68 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 54.86 ▲4.12 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 95.79 ▼4.24 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.35 ▼1.62 |
Products List Delete /wp-admin/admin.php?page=aplbcp-products-delete | 3.24 | 34.15 |
Products List Edit Submit /wp-admin/admin.php?page=aplbcp-products-edit-submit | 3.24 | 33.48 |
Settings /wp-admin/admin.php?page=aplbcp_settings | 3.26 | 31.83 |
Add New /wp-admin/admin.php?page=aplbcp_addnew | 3.39 | 41.86 |
Products Preview /wp-admin/admin.php?page=aplbcp-products-preview | 3.28 | 34.53 |
Products List Settings /wp-admin/admin.php?page=aplbcp-products-settings | 3.25 | 34.02 |
Products List Edit /wp-admin/admin.php?page=aplbcp-products-edit | 3.26 | 32.35 |
Add New /wp-admin/admin.php?page=aplbcp-addnew-submit | 3.24 | 34.20 |
All Product List /wp-admin/admin.php?page=aplbcp_list_all | 3.26 | 33.99 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Illegal file modification found: 2 files (0.00KB) outside of "wp-content/plugins/affiliate-products-list-by-conicplex/" and "wp-content/uploads/"
- (new file) "wp-content/plugins/affiliate-products-list-by-conicplex/assets/icon-256\303\227256.png"
- (new file) "wp-content/plugins/affiliate-products-list-by-conicplex/assets/icon-128\303\227128.png"
Filesystem: 27 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_aplbcp_products |
wp_aplbcp_products_list |
wp_aplbcp_setting |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Affiliate Products List by ConicPlex: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲131 | 13.50 ▼0.67 | 4.70 ▲2.85 | 43.21 ▼0.92 |
Dashboard /wp-admin | 2,258 ▲70 | 4.95 ▼0.14 | 108.62 ▼7.42 | 40.73 ▼5.86 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.00 ▲0.02 | 41.09 ▲2.55 | 34.35 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,577 ▲39 | 23.31 ▼0.06 | 656.52 ▼28.14 | 55.05 ▼8.66 |
Media Library /wp-admin/upload.php | 1,440 ▲55 | 4.23 ▲0.01 | 99.47 ▼8.71 | 45.05 ▼5.66 |
Products List Delete /wp-admin/admin.php?page=aplbcp-products-delete | 1,491 | 2.31 | 26.49 | 31.25 |
Products List Edit Submit /wp-admin/admin.php?page=aplbcp-products-edit-submit | 1,526 | 2.34 | 26.88 | 32.51 |
Settings /wp-admin/admin.php?page=aplbcp_settings | 1,091 | 2.04 | 22.60 | 34.75 |
Add New /wp-admin/admin.php?page=aplbcp_addnew | 4,081 | 13.98 | 401.60 | 128.23 |
Products Preview /wp-admin/admin.php?page=aplbcp-products-preview | 816 | 2.05 | 27.19 | 26.41 |
Products List Settings /wp-admin/admin.php?page=aplbcp-products-settings | 810 | 2.02 | 22.55 | 22.77 |
Products List Edit /wp-admin/admin.php?page=aplbcp-products-edit | 1,510 | 2.31 | 27.28 | 31.12 |
Add New /wp-admin/admin.php?page=aplbcp-addnew-submit | 1,531 | 2.39 | 27.50 | 32.58 |
All Product List /wp-admin/admin.php?page=aplbcp_list_all | 845 | 2.03 | 24.91 | 29.16 |
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
It is recommended to fix the following
- The uninstall procedure failed, leaving 3 tables in the database
- wp_aplbcp_setting
- wp_aplbcp_products
- wp_aplbcp_products_list
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=aplbcp-products-preview
- > Notice in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-products.php+25
Undefined variable: product_id
- > GET request to /wp-admin/admin.php?page=aplbcp-products-preview
- > Notice in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-products.php+165
Undefined offset: 0
- > GET request to /wp-admin/admin.php?page=aplbcp-products-preview
- > Notice in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-products.php+165
Trying to get property 'product_list_name' of non-object
SRP 0% 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
Please fix the following items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/affiliate-products-list-by-conicplex/affiliate-products-list-by-conicplex.php
- > /wp-content/plugins/affiliate-products-list-by-conicplex/include/aplbcp-products-delete.php
- > /wp-content/plugins/affiliate-products-list-by-conicplex/include/aplbcp-products-edit-submit.php
- > /wp-content/plugins/affiliate-products-list-by-conicplex/include/aplbcp-add-new-submit.php
- > /wp-content/plugins/affiliate-products-list-by-conicplex/index.php
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-products-edit.php:4
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-products.php:5
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp_settings.php:5
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-products-list.php on line 3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-products.php on line 3
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp_settings.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-products-add-new.php:2
- > PHP Fatal error
Uncaught Error: Call to a member function get_var() on null in wp-content/plugins/affiliate-products-list-by-conicplex/aplbcp-products-list.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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 to be fixed:
- Screenshots: Screenshot #1 (Add New Affiliate Products List.) image missing
affiliate-products-list-by-conicplex/affiliate-products-list-by-conicplex.php 85% from 13 tests
The entry point to "Affiliate Products List by ConicPlex" version 1.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: Keep the plugin description shorter than 140 characters (currently 211 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,701 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 218 | 44 | 1,211 |
CSS | 2 | 62 | 2 | 466 |
JavaScript | 1 | 1 | 0 | 23 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.62MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 22.41KB | 10.87KB | ▼ 51.50% |
assets/screenshot-3.png | 83.59KB | 37.58KB | ▼ 55.04% |
assets/icon-256×256.png | 10.84KB | 4.33KB | ▼ 60.06% |
assets/screenshot-5.png | 107.72KB | 34.16KB | ▼ 68.29% |
assets/banner-1544x500.png | 40.37KB | 17.96KB | ▼ 55.51% |