Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.81MB] [CPU: ▲5.82ms] Passed 4 tests
A check of server-side resources used by AFS Analytics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.39 ▲0.92 | 51.19 ▲14.24 |
Dashboard /wp-admin | 4.12 ▲0.82 | 58.48 ▲9.88 |
Posts /wp-admin/edit.php | 4.16 ▲0.80 | 53.53 ▼3.80 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.80 | 100.99 ▲8.45 |
Media Library /wp-admin/upload.php | 4.03 ▲0.80 | 44.57 ▲8.73 |
Plugin settings /wp-admin/admin.php?page=afsa_settings_page | 3.99 | 43.43 |
Contact us /wp-admin/admin.php?page=afsa_support | 3.98 | 38.87 |
AFS Analytics /wp-admin/admin.php?page=afsa_dashboard | 4.00 | 45.27 |
Dashboard Demo /wp-admin/admin.php?page=afsa_demo_dashboard_page | 4.00 | 42.20 |
account_manager /wp-admin/admin.php?page=afsa_account_manager | 4.00 | 49.81 |
AFS Analytics /wp-admin/options-general.php?page=afsa_settings_page | 4.00 | 43.36 |
Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 82 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_afsa_processed_order |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
afsa_accounts |
widget_theysaidso_widget |
afsa_db_schema_version |
widget_recent-posts |
can_compress_scripts |
afsa_request_state |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AFS Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲152 | 13.35 ▼1.05 | 1.47 ▼0.36 | 25.27 ▼16.57 |
Dashboard /wp-admin | 2,314 ▲123 | 4.87 ▲0.04 | 96.46 ▼6.01 | 84.08 ▲43.77 |
Posts /wp-admin/edit.php | 2,126 ▲34 | 2.02 ▲0.02 | 34.17 ▼8.13 | 34.37 ▼2.07 |
Add New Post /wp-admin/post-new.php | 1,705 ▲172 | 24.49 ▲1.47 | 621.12 ▲26.29 | 51.13 ▲5.10 |
Media Library /wp-admin/upload.php | 1,419 ▲37 | 4.25 ▲0.09 | 97.36 ▲0.49 | 77.83 ▲35.84 |
Plugin settings /wp-admin/admin.php?page=afsa_settings_page | 890 | 2.22 | 26.28 | 29.40 |
Contact us /wp-admin/admin.php?page=afsa_support | 796 | 2.02 | 22.85 | 23.41 |
AFS Analytics /wp-admin/admin.php?page=afsa_dashboard | 850 | 2.04 | 26.22 | 42.86 |
Dashboard Demo /wp-admin/admin.php?page=afsa_demo_dashboard_page | 1,641 | 4.35 | 63.60 | 133.15 |
account_manager /wp-admin/admin.php?page=afsa_account_manager | 820 | 2.01 | 22.35 | 30.12 |
AFS Analytics /wp-admin/options-general.php?page=afsa_settings_page | 890 | 2.20 | 24.89 | 25.80 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- widget_recent-posts
- afsa_request_state
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- afsa_accounts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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=afsa_support
- > Warning in wp-includes/pluggable.php+1438
Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)
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
- 57× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/addfreestats/includes/class-afsa-db.php on line 3
- > PHP Warning
Use of undefined constant AFSA_INCLUDES_DIR - assumed 'AFSA_INCLUDES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/addfreestats/includes/controllers/class-afsa-dashboard-page.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'AFSA_INCLUDES_DIR/api/oauth/class-afsa-oauth-client.php' (include_path='.:/usr/share/php') in wp-content/plugins/addfreestats/includes/api/class-afsa-api.php on line 3
- > PHP Warning
require_once(AFSA_INCLUDES_DIR/api/request/class-afsa-api-request.php): failed to open stream: No such file or directory in wp-content/plugins/addfreestats/includes/ajax/class-afsa-ajax.php on line 3
- > PHP Warning
require_once(AFSA_INCLUDES_DIR/infos/class-afsa-infos-site.php): failed to open stream: No such file or directory in wp-content/plugins/addfreestats/includes/infos/woo/class-afsa-infos-store.php on line 3
- > PHP Warning
Use of undefined constant AFSA_INCLUDES_DIR - assumed 'AFSA_INCLUDES_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/addfreestats/includes/api/request/class-afsa-api-request.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'AFSA_INCLUDES_DIR/api/request/class-afsa-api-request.php' (include_path='.:/usr/share/php') in wp-content/plugins/addfreestats/includes/ajax/class-afsa-ajax.php on line 3
- > PHP Warning
require_once(AFSA_INCLUDES_DIR/api/class-afsa-api.php): failed to open stream: No such file or directory in wp-content/plugins/addfreestats/includes/api/request/class-afsa-api-request.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/addfreestats/includes/class-afsa-db.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'AFSA_Dashboard_Renderer' not found in wp-content/plugins/addfreestats/includes/controllers/renderer/class-afsa-admin-widget-dashboard-renderer.php:5
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=afsa_dashboard
- > Network (severe)
wp-content/plugins/addfreestats/assets/images/welcome.png - Failed to load resource: the server responded with a status of 404 (Not Found)
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
Attributes that need to be fixed:
- Tags: You are using too many tags: 32 tag instead of maximum 10
addfreestats/addfreestats.php 85% from 13 tests
"AFS Analytics" version 4.20's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.5.0" instead of "1.4.1")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin6,341 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 1,634 | 448 | 4,873 |
CSS | 7 | 179 | 12 | 522 |
PO File | 2 | 209 | 243 | 510 |
JavaScript | 5 | 80 | 4 | 200 |
SVG | 1 | 1 | 1 | 157 |
Markdown | 2 | 62 | 0 | 79 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 90.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 54 | |
▷ Abstract classes | 1 | 1.85% |
▷ Concrete classes | 53 | 98.15% |
▷ Final classes | 0 | 0.00% |
Methods | 492 | |
▷ Static methods | 182 | 36.99% |
▷ Public methods | 447 | 90.85% |
▷ Protected methods | 2 | 0.41% |
▷ Private methods | 43 | 8.74% |
Functions | 11 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 11 | 100.00% |
Constants | 39 | |
▷ Global constants | 38 | 97.44% |
▷ Class constants | 1 | 2.56% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.14MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.small.png | 5.36KB | 2.67KB | ▼ 50.15% |
assets/images/intro.screen.png | 96.44KB | 36.36KB | ▼ 62.29% |
assets/images/icon.small.png | 0.83KB | 1.20KB | 0.00% |
assets/images/icon.png | 17.73KB | 7.30KB | ▼ 58.80% |
assets/images/logo.square.png | 27.41KB | 9.83KB | ▼ 64.15% |