Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.85ms] Passed 4 tests
Analyzing server-side resources used by Beam Analytics for WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.48 ▼2.01 |
Dashboard /wp-admin | 3.39 ▲0.05 | 46.06 ▼14.21 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 47.74 ▼1.20 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.11 ▼1.98 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.30 ▲3.75 |
Beam Analytics /wp-admin/options-general.php?page=wps_beam_analytics | 3.26 | 28.00 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
wps_beam_analytics |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Beam Analytics for WordPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.22 ▼0.11 | 1.65 ▼0.06 | 41.81 ▲2.57 |
Dashboard /wp-admin | 2,199 ▲18 | 5.58 ▼0.13 | 91.83 ▼10.72 | 42.12 ▼3.48 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.09 ▲0.13 | 40.75 ▼1.26 | 34.05 ▼2.45 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.30 ▲0.26 | 675.63 ▲0.85 | 62.28 ▲8.34 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.25 ▲0.07 | 96.83 ▼3.53 | 45.56 ▲0.37 |
Beam Analytics /wp-admin/options-general.php?page=wps_beam_analytics | 1,062 | 2.00 | 23.50 | 41.92 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- wps_beam_analytics
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wps_beam_analytics
- > Notice in wp-content/plugins/beam-analytics/includes/admin/class-options.php+200
Undefined index: token
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: tracking, beam analytics, analytics, beam, stats
beam-analytics/beam-analytics.php Passed 13 tests
The principal PHP file in "Beam Analytics for WordPress" v. 1.0.1 is loaded by WordPress automatically on each request
58 characters long description:
Connect your Beam Analytics account to your WordPress site
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
Success! There were no dangerous files found in this plugin448 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 98 | 177 | 401 |
CSS | 1 | 10 | 0 | 46 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.54% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin