Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼8.23ms] Passed 4 tests
An overview of server-side resources used by Meow Analytics (Google Analytics)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 44.22 ▲4.29 |
Dashboard /wp-admin | 3.56 ▲0.21 | 53.27 ▼8.46 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 45.88 ▼5.74 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 88.79 ▼22.30 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 40.26 ▲3.59 |
Analytics /wp-admin/admin.php?page=mga_settings | 3.39 | 38.66 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 3.59 | 54.84 |
Server storage [IO: ▲2.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Meow Analytics (Google Analytics)
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.24 ▼1.40 | 1.67 ▼0.18 | 41.37 ▼1.76 |
Dashboard /wp-admin | 2,259 ▲71 | 5.89 ▲1.02 | 100.31 ▼12.71 | 38.15 ▼4.51 |
Posts /wp-admin/edit.php | 2,142 ▲50 | 2.04 ▲0.03 | 34.17 ▼5.58 | 30.05 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 17.56 ▼5.89 | 692.09 ▼3.90 | 59.83 ▲7.98 |
Media Library /wp-admin/upload.php | 1,438 ▲50 | 4.14 ▼0.09 | 100.83 ▼13.24 | 43.35 ▼2.68 |
Analytics /wp-admin/admin.php?page=mga_settings | 1,102 | 5.22 | 119.28 | 36.61 |
Dashboard /wp-admin/admin.php?page=meowapps-main-menu | 5,199 | 1.70 | 25.75 | 50.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require(): Failed opening required 'MGA_PATH/classes/core.php' (include_path='.:/usr/share/php') in wp-content/plugins/meow-analytics/classes/init.php on line 27
- > PHP Fatal error
Uncaught Error: Class 'MeowCommon_Admin' not found in wp-content/plugins/meow-analytics/classes/admin.php:3
- > PHP Warning
Use of undefined constant MGA_PATH - assumed 'MGA_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/meow-analytics/classes/init.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/meow-analytics/meow-analytics.php:22
- > PHP Warning
require(MGA_PATH/classes/core.php): failed to open stream: No such file or directory in wp-content/plugins/meow-analytics/classes/init.php on line 27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: google analytics, meowapps, dashboard, analytics, google
meow-analytics/meow-analytics.php Passed 13 tests
"Meow Analytics (Google Analytics)" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
119 characters long description:
Adds the Google Analytics (GA4 included) code to your website and a little dashboard with realtime and historical data.
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
No dangerous file extensions were detected1,775 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 183 | 92 | 1,378 |
PO File | 1 | 75 | 77 | 254 |
JavaScript | 3 | 2 | 162 | 143 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 14.64 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 96 | |
▷ Static methods | 15 | 15.62% |
▷ Public methods | 91 | 94.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 5.21% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin