Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/ampedsense-adsense-split-tester/amped-sense.php+140
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.31MB] [CPU: ▼3.29ms] Passed 4 tests
Analyzing server-side resources used by AmpedSense - AdSense Split Tester
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.33 | 42.54 ▼1.68 |
Dashboard /wp-admin | 3.62 ▲0.31 | 50.86 ▼5.02 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 55.01 ▲3.09 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 88.89 ▼5.32 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 38.66 ▼1.14 |
Segments /wp-admin/admin.php?page=ampedsense-segments | 3.56 | 35.38 |
Settings /wp-admin/admin.php?page=ampedsense-settings | 3.53 | 32.75 |
Split Tests /wp-admin/admin.php?page=ampedsense-main | 3.88 | 35.31 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_ampedsensesidebarf |
widget_ampedsensesidebarb |
widget_ampedsensesidebare |
ampedsense_settings |
can_compress_scripts |
widget_recent-posts |
widget_ampedsensesidebara |
widget_ampedsensesidebard |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
Checking browser requirements for AmpedSense - AdSense Split Tester
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 14.76 ▲0.03 | 2.40 ▲0.68 | 43.51 ▲2.37 |
Dashboard /wp-admin | 2,213 ▲36 | 5.52 ▼0.10 | 86.06 ▼13.03 | 76.77 ▲32.44 |
Posts /wp-admin/edit.php | 2,136 ▲33 | 1.98 ▲0.01 | 37.01 ▼3.04 | 35.52 ▼0.55 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.67 ▲0.04 | 658.32 ▼23.07 | 60.09 ▼9.10 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.24 ▲0.04 | 99.89 ▼2.96 | 67.11 ▲22.21 |
Segments /wp-admin/admin.php?page=ampedsense-segments | 908 | 2.13 | 37.95 | 42.06 |
Settings /wp-admin/admin.php?page=ampedsense-settings | 1,012 | 2.14 | 36.01 | 38.83 |
Split Tests /wp-admin/admin.php?page=ampedsense-main | 941 | 2.24 | 25.98 | 28.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 13 options in the database
- widget_ampedsensesidebarb
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_ampedsensesidebare
- theysaidso_admin_options
- widget_ampedsensesidebarc
- widget_ampedsensesidebarf
- widget_recent-comments
- widget_ampedsensesidebard
- ...
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/admin.php?page=ampedsense-settings
- > Notice in wp-content/plugins/ampedsense-adsense-split-tester/amped-sense.php+1012
Undefined index: googlerefreshtoken
- > GET request to /wp-admin/admin.php?page=ampedsense-settings
- > Notice in wp-content/plugins/ampedsense-adsense-split-tester/settings.php+17
Undefined index: as_googleaccesstoken
- > GET request to /wp-admin/admin.php?page=ampedsense-settings
- > Warning in wp-content/plugins/ampedsense-adsense-split-tester/settings.php+19
count(): Parameter must be an array or an object that implements Countable
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/ampedsense-adsense-split-tester/segments.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/ampedsense-adsense-split-tester/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ampedsense-adsense-split-tester/amped-sense.php:1527
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/ampedsense-adsense-split-tester/main.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: advertising, adsense, google, ads
ampedsense-adsense-split-tester/amped-sense.php 92% from 13 tests
The main file in "AmpedSense - AdSense Split Tester" v. 4.68 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ampedsense-adsense-split-tester.php" instead of "amped-sense.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected11,158 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 34 | 57 | 7,143 |
PHP | 5 | 400 | 984 | 3,029 |
JavaScript | 2 | 169 | 68 | 986 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.69 |
Average class complexity | 49.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 239.00 |
Average method complexity | 5.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 9 | 10.11% |
▷ Public methods | 87 | 97.75% |
▷ Protected methods | 2 | 2.25% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
24 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/logo.png | 3.56KB | 2.85KB | ▼ 20.09% |
resources/hv.png | 2.80KB | 7.32KB | 0.00% |
resources/ui-bg_glass_75_e6e6e6_1x400.png | 0.31KB | 0.18KB | ▼ 39.81% |
resources/edit.png | 0.44KB | 0.25KB | ▼ 42.95% |
resources/notes.png | 0.57KB | 0.38KB | ▼ 33.16% |