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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▲1.70ms] Passed 4 tests
An overview of server-side resources used by Indiemetrics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.12 | 37.48 ▼3.26 |
Dashboard /wp-admin | 3.43 ▲0.13 | 46.03 ▲1.01 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 51.90 ▲5.24 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 107.78 ▲13.49 |
Media Library /wp-admin/upload.php | 3.36 ▲0.12 | 35.98 ▲3.79 |
Indiemetrics /wp-admin/options-general.php?page=arnold_analytics_settings | 3.32 | 31.80 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
arnold_analytics_version |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Indiemetrics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.26 ▼1.12 | 1.59 ▼0.26 | 37.79 ▼10.41 |
Dashboard /wp-admin | 2,213 ▲22 | 5.87 ▲0.98 | 107.33 ▼0.26 | 44.10 ▲2.02 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.96 ▼0.08 | 39.43 ▲2.15 | 36.13 ▲1.25 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.19 ▼4.87 | 597.23 ▼73.65 | 48.91 ▼12.22 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.21 ▼0.02 | 93.06 ▼5.57 | 40.26 ▼2.25 |
Indiemetrics /wp-admin/options-general.php?page=arnold_analytics_settings | 795 | 2.03 | 25.98 | 27.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- arnold_analytics_version
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
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
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
5 plugin tags: plugin, analytics, arnold analytics, wordpress, indiemetrics
arnold-analytics/arnold-analytics.php 92% from 13 tests
This is the main PHP file of "Indiemetrics" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.9" instead of "1.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected568 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 171 | 441 | 522 |
SVG | 1 | 0 | 1 | 28 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 34.33 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 32 | 91.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.57% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
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
4 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 7.27KB | 4.11KB | ▼ 43.44% |
assets/banner-1544x500.png | 35.95KB | 11.19KB | ▼ 68.88% |
assets/icon-256x256.png | 17.43KB | 11.89KB | ▼ 31.78% |
assets/icon-128x128.png | 6.98KB | 4.32KB | ▼ 38.15% |