Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼7.23ms] Passed 4 tests
Analyzing server-side resources used by Top Posts for Google Analytics by Asentechllc
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 39.10 ▲0.79 |
Dashboard /wp-admin | 3.44 ▲0.14 | 44.97 ▼2.90 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 46.71 ▼0.21 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 86.27 ▼26.17 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.39 ▲0.38 |
GA Top Posts /wp-admin/options-general.php?page=ga-top-posts | 3.33 | 30.58 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
widget_gatopposts_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Top Posts for Google Analytics by Asentechllc
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲65 | 13.23 ▼1.12 | 1.88 ▲0.10 | 41.45 ▼5.33 |
Dashboard /wp-admin | 2,220 ▲35 | 4.88 ▼0.99 | 96.57 ▼6.23 | 39.79 ▲3.58 |
Posts /wp-admin/edit.php | 2,100 ▲8 | 2.16 ▲0.10 | 39.54 ▼6.58 | 36.08 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,524 ▼3 | 23.10 ▲4.93 | 651.33 ▲14.72 | 52.53 ▼2.71 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.27 ▼0.05 | 96.58 ▼8.14 | 43.77 ▼0.51 |
GA Top Posts /wp-admin/options-general.php?page=ga-top-posts | 887 | 2.21 | 26.39 | 33.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_gatopposts_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ga-top-posts/ga-top-posts-widget.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ga-top-posts/ga-top-posts-widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Requires php: Invalid version format
ga-top-posts/ga-top-posts.php 92% from 13 tests
This is the main PHP file of "Top Posts for Google Analytics by Asentechllc" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 238 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,135 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 59 | 328 | 1,036 |
JavaScript | 1 | 10 | 3 | 67 |
CSS | 1 | 0 | 0 | 32 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 27.57 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 51 | |
▷ Static methods | 1 | 1.96% |
▷ Public methods | 44 | 86.27% |
▷ Protected methods | 3 | 5.88% |
▷ Private methods | 4 | 7.84% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 20 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 20 | 100.00% |
▷ Public constants | 20 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 24.72KB | 7.37KB | ▼ 70.18% |
screenshot-2.png | 41.28KB | 18.55KB | ▼ 55.08% |