Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.49ms] 75% from 4 tests
Server-side resources used by Forward Attribution
Please have a look at the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 816.42ms on /wp-admin/options-general.php?page=forward-attribution/includes/class_fwdatt_license.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.18 ▼2.53 |
Dashboard /wp-admin | 3.32 ▲0.01 | 52.79 ▼8.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 57.64 ▲2.15 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 99.62 ▼8.26 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.45 ▲1.02 |
Forward Attribution /wp-admin/options-general.php?page=forward-attribution/includes/class_fwdatt_license.php | 3.21 | 816.42 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Forward Attribution
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.18 | 1.98 ▲0.10 | 49.19 ▲5.99 |
Dashboard /wp-admin | 2,199 ▲25 | 5.61 ▼0.05 | 103.65 ▲6.36 | 44.82 ▲4.02 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.02 | 43.19 ▼0.86 | 38.47 ▲5.00 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.17 ▲0.19 | 671.63 ▼55.27 | 60.90 ▲5.60 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.13 ▼0.05 | 111.14 ▼3.59 | 48.58 ▼0.85 |
Forward Attribution /wp-admin/options-general.php?page=forward-attribution/includes/class_fwdatt_license.php | 819 | 1.99 | 29.50 | 27.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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 has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=forward-attribution/includes/class_fwdatt_license.php
- > Notice in wp-content/plugins/forward-attribution/includes/class_fwdatt_license.php+42
Trying to get property 'result' of non-object
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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forward-attribution/includes/class-fwdatt-plug-menu.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/forward-attribution/includes/class_fwdatt_license.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were not plugin tags detected
forward-attribution/forward-attribution.php 92% from 13 tests
The principal PHP file in "Forward Attribution" v. 1.2.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected231 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 73 | 117 | 214 |
PO File | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 2.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 4 | 50.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 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
No PNG files were detected