Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼146.40ms] Passed 4 tests
Server-side resources used by Peachtree Analytics
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.17 | 40.26 ▲16.41 |
Dashboard /wp-admin | 3.12 ▲0.06 | 46.78 ▲0.14 |
Posts /wp-admin/edit.php | 3.23 ▲0.12 | 43.01 ▼6.47 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.04 | 90.03 ▼578.97 |
Media Library /wp-admin/upload.php | 3.07 ▲0.06 | 33.90 ▼0.31 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Peachtree Analytics: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.10 ▲0.67 | 7.54 ▼1.52 | 50.05 ▼3.66 |
Dashboard /wp-admin | 2,973 ▲39 | 5.91 ▼0.00 | 148.80 ▼8.64 | 119.59 ▲1.71 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.81 ▲0.13 | 70.30 ▲8.81 | 96.31 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,500 ▼183 | 18.53 ▲0.25 | 391.97 ▼4.93 | 120.61 ▲3.18 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.03 ▲0.01 | 166.88 ▼0.79 | 126.72 ▲1.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: analytics, peachtree
peachtree-analytics/peachtree_analytics.php 92% from 13 tests
The main PHP file in "Peachtree Analytics" ver. 2.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("peachtree-analytics.php" instead of "peachtree_analytics.php")
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
There were no executable files found in this plugin432 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 87 | 187 | 411 |
JSON | 2 | 0 | 0 | 21 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 25 | |
▷ Static methods | 4 | 16.00% |
▷ Public methods | 24 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.00% |
Functions | 6 | |
▷ Named functions | 1 | 16.67% |
▷ Anonymous functions | 5 | 83.33% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin