Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼12.60ms] Passed 4 tests
An overview of server-side resources used by Audience Analytics - by Quantcast
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.58 ▼0.11 |
Dashboard /wp-admin | 3.21 ▼0.09 | 33.11 ▼16.14 |
Posts /wp-admin/edit.php | 3.28 ▼0.08 | 34.29 ▼12.70 |
Add New Post /wp-admin/post-new.php | 5.45 ▼0.44 | 68.33 ▼21.43 |
Media Library /wp-admin/upload.php | 3.21 ▼0.01 | 33.55 ▲0.47 |
Quantcast /wp-admin/options-general.php?page=wp-quantcast | 3.18 | 27.34 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Audience Analytics - by Quantcast
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 14.79 ▲0.40 | 1.66 ▼0.13 | 44.51 ▼2.28 |
Dashboard /wp-admin | 2,218 ▲30 | 4.84 ▼0.19 | 113.46 ▼4.64 | 45.16 ▼1.22 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.01 ▲0.02 | 35.94 ▼1.67 | 35.29 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,525 ▼8 | 17.44 ▼5.63 | 676.39 ▼8.25 | 54.10 ▼12.05 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.23 ▼0.01 | 93.57 ▼13.24 | 43.25 ▼4.57 |
Quantcast /wp-admin/options-general.php?page=wp-quantcast | 808 | 2.02 | 24.74 | 24.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-quantcast
- > Notice in wp-content/plugins/audience-analytics-by-quantcast/audience-analytics.php+128
Trying to access array offset on value of type bool
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: stats, advertising, analytics, statistics, audiences...
audience-analytics-by-quantcast/audience-analytics.php 92% from 13 tests
The main file in "Audience Analytics - by Quantcast" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("audience-analytics-by-quantcast.php" instead of "audience-analytics.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin131 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 30 | 21 | 131 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.20MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/logo-black.png | 20.15KB | 4.52KB | ▼ 77.58% |
assets/screenshot-1.png | 58.72KB | 13.78KB | ▼ 76.53% |
assets/screenshot-2.png | 129.11KB | 35.99KB | ▼ 72.12% |