Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.89ms] Passed 4 tests
This is a short check of server-side resources used by TrafficGuard PPC Fraud Prevention
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 44.57 ▲6.69 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.61 ▼4.52 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 47.50 ▼10.49 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 92.01 ▼2.97 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.43 ▼1.58 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for TrafficGuard PPC Fraud Prevention
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 14.60 ▲0.22 | 2.21 ▲0.45 | 45.42 ▲2.24 |
Dashboard /wp-admin | 2,214 ▲26 | 5.88 ▲1.00 | 102.49 ▼9.03 | 74.32 ▲28.52 |
Posts /wp-admin/edit.php | 2,106 ▲17 | 2.00 ▲0.00 | 39.34 ▼0.74 | 32.91 ▼6.78 |
Add New Post /wp-admin/post-new.php | 1,528 ▼5 | 23.20 ▼0.05 | 676.33 ▼2.00 | 64.26 ▲0.75 |
Media Library /wp-admin/upload.php | 1,393 ▲11 | 4.20 ▼0.01 | 103.30 ▲0.95 | 43.83 ▼0.24 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
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 take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/trafficguard/resources/admin/settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/trafficguard/trafficguard-runtime-config.php:7
- > PHP Warning
Use of undefined constant TRAFFICGUARD_PLUGIN_SLUG__ - assumed 'TRAFFICGUARD_PLUGIN_SLUG__' (this will throw an Error in a future version of PHP) in wp-content/plugins/trafficguard/resources/admin/settings.php on line 12
- > PHP Notice
Undefined variable: alert_type in wp-content/plugins/trafficguard/resources/views/system_notification.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/trafficguard/trafficguard-runtime-config.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
trafficguard/trafficguard.php Passed 13 tests
The entry point to "TrafficGuard PPC Fraud Prevention" version 1.9 is a PHP file that has certain tags in its header comment area
41 characters long description:
TrafficGuard Service plugin for Wordpress
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
No dangerous file extensions were detected514 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 93 | 135 | 416 |
CSS | 1 | 13 | 1 | 98 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 19 | 57.58% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 29 | |
▷ Global constants | 22 | 75.86% |
▷ Class constants | 7 | 24.14% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/tg_settings_logo.png | 11.54KB | 6.63KB | ▼ 42.58% |
resources/images/tg_properties_hi.png | 17.23KB | 7.25KB | ▼ 57.92% |
resources/images/favicon.png | 0.50KB | 0.57KB | 0.00% |