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.00MB] [CPU: ▼14.78ms] Passed 4 tests
An overview of server-side resources used by FFC Football CO2 Calculator Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.98 ▲1.12 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.62 ▼18.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.08 ▼5.36 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 80.66 ▼34.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.33 ▼0.80 |
Server storage [IO: ▲1.68MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by FFC Football CO2 Calculator Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲136 | 13.43 ▼0.89 | 9.42 ▲7.80 | 41.21 ▼5.43 |
Dashboard /wp-admin | 2,192 ▲21 | 5.63 ▲0.11 | 95.17 ▲7.51 | 42.57 ▼2.08 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.07 | 35.77 ▼0.23 | 32.69 ▼2.15 |
Add New Post /wp-admin/post-new.php | 1,535 ▲6 | 25.00 ▲1.97 | 641.16 ▲48.47 | 71.68 ▲19.73 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.31 ▲0.13 | 100.21 ▲4.48 | 40.90 ▼0.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 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)
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
Please take a closer look at the following
- 6× PHP files output text when accessed directly:
- > /wp-content/plugins/ffc-football-co2-calculator/2.5/ffc-football-co2-calculator.php
- > /wp-content/plugins/ffc-football-co2-calculator/shortcodes/co2calculator.php
- > /wp-content/plugins/ffc-football-co2-calculator/init/plugin.php
- > /wp-content/plugins/ffc-football-co2-calculator/2.5/init/plugin.php
- > /wp-content/plugins/ffc-football-co2-calculator/ffc-football-co2-calculator.php
- > /wp-content/plugins/ffc-football-co2-calculator/2.5/shortcodes/co2calculator.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #1 is required in ffc-football-co2-calculator/assets to your readme.txt
ffc-football-co2-calculator/ffc-football-co2-calculator.php Passed 13 tests
Analyzing the main PHP file in "FFC Football CO2 Calculator Plugin" version 2.7
113 characters long description:
FFC Football CO2 Calculator is a plugin for calculating CO2-emissions in terms of football related CO2 emissions.
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
There were no executable files found in this plugin320 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 68 | 102 | 198 |
JavaScript | 1 | 4 | 5 | 78 |
PO File | 1 | 14 | 14 | 44 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 48.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 26 | 52.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 1.63MB with 1.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
init/images/tree.png | 111.04KB | 38.84KB | ▼ 65.02% |
2.5/init/images/Sports-4-Future-Logo.png | 56.18KB | 17.18KB | ▼ 69.42% |
init/images/pftp-projects/YucatanRestoration.png | 294.72KB | 108.54KB | ▼ 63.17% |
2.5/init/images/pftp-projects/OneStudentOneTree.png | 374.52KB | 107.28KB | ▼ 71.35% |
init/images/pftp-projects/OneStudentOneTree.png | 374.52KB | 107.28KB | ▼ 71.35% |