Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method GNA_GoogleAnalytics::activate_handler() should not be called statically
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.27ms] Passed 4 tests
A check of server-side resources used by GNA Google Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 35.23 ▼5.36 |
Dashboard /wp-admin | 3.36 ▲0.05 | 45.77 ▼1.93 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.39 ▼0.51 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.50 ▼9.28 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.35 ▲1.81 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for GNA Google Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.25 ▼1.54 | 4.98 ▲3.22 | 41.41 ▼10.78 |
Dashboard /wp-admin | 2,221 ▲33 | 5.85 ▲0.76 | 94.51 ▼16.49 | 65.29 ▲18.73 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.01 | 34.23 ▲0.55 | 36.37 ▼4.40 |
Add New Post /wp-admin/post-new.php | 1,536 ▼1 | 21.14 ▲2.78 | 688.68 ▲50.58 | 47.66 ▼0.95 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.22 ▲0.00 | 96.72 ▼2.44 | 70.88 ▲28.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method GNA_GoogleAnalytics::deactivate_handler() should not be called statically
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'GNA_GoogleAnalytics_Admin_Menu' not found in wp-content/plugins/gna-google-analytics/admin/gna-google-analytics-admin-settings-menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gna-google-analytics/inc/gna-google-analytics-config.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Donate link: Please fix this invalid url: ""
gna-google-analytics/gna-google-analytics.php Passed 13 tests
Analyzing the main PHP file in "GNA Google Analytics" version 1.1.0
42 characters long description:
Easy to set-up the Google Analytics Script
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected391 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 73 | 37 | 375 |
JavaScript | 1 | 2 | 0 | 16 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 4 | 8.33% |
▷ Public methods | 48 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/gna_20x20.png | 2.98KB | 0.33KB | ▼ 88.89% |