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.21MB] [CPU: ▼1.86ms] Passed 4 tests
A check of server-side resources used by SynField Smart Agriculture
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 44.51 ▲1.16 |
Dashboard /wp-admin | 3.56 ▲0.26 | 49.32 ▲1.76 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 49.56 ▼1.80 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 88.89 ▼8.56 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 40.35 ▲8.59 |
SynField Smart Agriculture /wp-admin/options-general.php?page=synfield-smart-agriculture | 3.39 | 31.84 |
Server storage [IO: ▲2.37MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_synfield_smart_agriculture_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
synfield_app_key_error |
synfield_app_key |
Browser metrics Passed 4 tests
SynField Smart Agriculture: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 15.76 ▲1.45 | 10.48 ▲8.50 | 43.59 ▼5.10 |
Dashboard /wp-admin | 2,214 ▲29 | 4.84 ▼1.01 | 109.93 ▲9.06 | 38.52 ▼5.18 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.00 ▼0.06 | 39.69 ▼6.82 | 34.82 ▼3.85 |
Add New Post /wp-admin/post-new.php | 1,521 ▼15 | 23.37 ▲0.24 | 664.52 ▲24.94 | 62.89 ▲2.75 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.24 ▼0.03 | 106.85 ▲10.69 | 45.78 ▲4.07 |
SynField Smart Agriculture /wp-admin/options-general.php?page=synfield-smart-agriculture | 831 | 2.20 | 24.64 | 28.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/synfield-smart-agriculture/synfield-smart-agriculture.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/synfield-smart-agriculture/templates/admin.php:2
- > PHP Fatal error
Uncaught Error: Class 'SynField\\Base\\BaseController' not found in wp-content/plugins/synfield-smart-agriculture/include/Base/SettingsLinks.php:15
- > PHP Fatal error
Uncaught Error: Class 'SynField\\Base\\BaseController' not found in wp-content/plugins/synfield-smart-agriculture/include/Base/Enqueue.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/synfield-smart-agriculture/include/Api/Widgets/SmartAgricultureWidget.php:16
- > PHP Fatal error
Uncaught Error: Class 'SynField\\Base\\BaseController' not found in wp-content/plugins/synfield-smart-agriculture/include/Api/Callbacks/AdminCallbacks.php:15
- > PHP Fatal error
Uncaught Error: Class 'SynField\\Base\\BaseController' not found in wp-content/plugins/synfield-smart-agriculture/include/Pages/Admin.php:17
- > PHP Fatal error
Uncaught Error: Class 'SynField\\Base\\BaseController' not found in wp-content/plugins/synfield-smart-agriculture/include/Base/WidgetController.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== synfield-smart-agriculture ===
)
synfield-smart-agriculture/synfield-smart-agriculture.php Passed 13 tests
"SynField Smart Agriculture" version 0.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Enable the data visualization of SynField nodes in a widget.
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 plugin6,058 lines of code in 34 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 4 | 4,663 |
PHP | 22 | 194 | 537 | 1,045 |
PO File | 2 | 73 | 73 | 180 |
CSS | 3 | 22 | 5 | 121 |
JavaScript | 3 | 6 | 5 | 19 |
JSON | 2 | 0 | 0 | 18 |
Markdown | 1 | 4 | 0 | 12 |
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.35 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 1 | 7.14% |
Methods | 76 | |
▷ Static methods | 12 | 15.79% |
▷ Public methods | 60 | 78.95% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 21.05% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin