Benchmarks
Plugin footprint Passed 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 gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼151.00ms] Passed 4 tests
An overview of server-side resources used by Farm-Calculators
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 40.44 ▲3.68 |
Dashboard /wp-admin | 3.09 ▲0.04 | 46.61 ▼1.44 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 44.31 ▼1.91 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 98.07 ▼604.33 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 37.19 ▲7.46 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Farm-Calculators: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,792 ▲220 | 16.61 ▲1.07 | 12.41 ▲1.26 | 49.18 ▼7.18 |
Dashboard /wp-admin | 2,975 ▲44 | 5.89 ▼0.18 | 142.39 ▼16.15 | 120.66 ▲3.11 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.70 ▲0.02 | 72.52 ▲3.51 | 102.38 ▲21.82 |
Add New Post /wp-admin/post-new.php | 1,685 ▲104 | 18.67 ▲1.48 | 387.31 ▼122.67 | 112.67 ▼21.85 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.04 ▼0.06 | 157.62 ▲0.02 | 118.26 ▼10.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% 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 50% from 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
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/farm-calculators/farm-calculators.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
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
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (screenshot-1.png) image missing
farm-calculators/farm-calculators.php Passed 13 tests
"Farm-Calculators" version 0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
106 characters long description:
Add farm calculators to your website to help users determine various farming and crop related information.
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
No dangerous file extensions were detected560 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 60 | 20 | 368 |
JavaScript | 1 | 21 | 0 | 122 |
Markdown | 1 | 27 | 0 | 61 |
CSS | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 15.50KB | 6.18KB | ▼ 60.15% |