Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.49ms] Passed 4 tests
A check of server-side resources used by Earthr: Round-up for Climate Initiatives
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.03 ▼5.39 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.52 ▲0.36 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.28 ▲2.62 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.15 ▼13.39 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.82 ▲0.47 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Earthr: Round-up for Climate Initiatives
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.33 ▼0.86 | 4.47 ▲2.61 | 41.10 ▼1.62 |
Dashboard /wp-admin | 2,203 ▲18 | 5.82 ▼0.00 | 98.45 ▼7.33 | 37.99 ▼5.32 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.00 | 33.62 ▼3.10 | 35.61 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,534 ▼11 | 17.78 ▼0.67 | 662.64 ▲65.75 | 54.94 ▲4.90 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.18 ▲0.00 | 93.19 ▼8.98 | 41.54 ▼1.08 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #1 in earthr/assets to your readme.txt
earthr/earthr-plugin-woocommerce.php 92% from 13 tests
The primary PHP file in "Earthr: Round-up for Climate Initiatives" version 1.4.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("earthr.php" instead of "earthr-plugin-woocommerce.php")
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 detected684 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 88 | 45 | 496 |
CSS | 2 | 19 | 0 | 142 |
JavaScript | 1 | 7 | 0 | 46 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
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 | 30 | |
▷ Named functions | 11 | 36.67% |
▷ Anonymous functions | 19 | 63.33% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/earthr-logo-text-white.png | 7.37KB | 1.86KB | ▼ 74.78% |
assets/i.png | 0.64KB | 0.77KB | 0.00% |
assets/globe.png | 1.17KB | 1.09KB | ▼ 6.69% |
assets/earthr-logo-all-white.png | 7.24KB | 1.85KB | ▼ 74.49% |
assets/earthr-logo-text-black.png | 7.30KB | 1.83KB | ▼ 74.98% |