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
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.02ms] Passed 4 tests
Server-side resources used by GreenRope Analytics
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.47 ▼5.35 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.48 ▼8.40 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.62 ▲1.15 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 82.37 ▼11.46 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.80 ▲1.58 |
Server storage [IO: ▲2.35MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
greenrope_settings |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by GreenRope Analytics
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲87 | 14.84 ▲0.55 | 1.79 ▼0.08 | 44.28 ▼5.60 |
Dashboard /wp-admin | 2,228 ▲40 | 5.86 ▲0.95 | 98.76 ▼9.51 | 84.05 ▲36.18 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 1.98 ▼0.03 | 40.67 ▲4.23 | 34.20 ▼0.82 |
Add New Post /wp-admin/post-new.php | 1,554 ▲21 | 18.26 ▼4.84 | 658.68 ▲10.05 | 54.79 ▲4.39 |
Media Library /wp-admin/upload.php | 1,410 ▲22 | 4.13 ▼0.09 | 101.91 ▼0.83 | 81.12 ▲38.82 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/greenrope-analytics/greenrope.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/greenrope-analytics/admin.inc.php:96
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: analytics, email marketing, wordpress crm, event registration system, greenrope...
greenrope-analytics/greenrope.php 92% from 13 tests
Analyzing the main PHP file in "GreenRope Analytics" version 1.5.6
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("greenrope-analytics.php" instead of "greenrope.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin299 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 63 | 19 | 182 |
CSS | 1 | 3 | 0 | 117 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 2.34MB with 1.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 1,749.01KB | 16.50KB | ▼ 99.06% |
assets/icon-128x128.png | 64.32KB | 10.26KB | ▼ 84.05% |
header.png | 11.91KB | 5.98KB | ▼ 49.84% |
icon.png | 0.77KB | 0.74KB | ▼ 4.41% |
assets/banner-772x250.png | 566.66KB | 78.94KB | ▼ 86.07% |