Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.87ms] Passed 4 tests
This is a short check of server-side resources used by OneDesk
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.02 | 37.70 ▼2.49 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.50 ▼1.15 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.56 ▲3.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 83.56 ▼3.38 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.45 ▲3.56 |
OneDesk Plugin /wp-admin/options-general.php?page=odwidget-settings | 3.22 | 30.89 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_odplugin_widget |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by OneDesk
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲98 | 14.45 ▲0.18 | 1.88 ▲0.01 | 39.35 ▼6.82 |
Dashboard /wp-admin | 2,210 ▲18 | 4.84 ▼0.07 | 102.33 ▼8.79 | 40.06 ▼4.63 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.05 ▲0.04 | 40.35 ▲5.27 | 34.22 ▲2.74 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.26 ▲4.71 | 591.23 ▼29.94 | 60.85 ▼5.07 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.22 ▲0.06 | 96.45 ▼0.88 | 40.86 ▼2.60 |
OneDesk Plugin /wp-admin/options-general.php?page=odwidget-settings | 848 | 2.02 | 22.61 | 43.57 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_odplugin_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/onedesk/includes/odplugin-scripts.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/onedesk/templates/ODSettingsPage.php:235
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/onedesk/includes/odplugin-class.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/onedesk/onedesk.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
10 plugin tags: solutions, business, software, feedback, messenger...
onedesk/onedesk.php Passed 13 tests
Analyzing the main PHP file in "OneDesk" version 0.1.0
79 characters long description:
Add the OneDesk Widget for easy access to OneDesk from any page on your website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected226 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 66 | 79 | 226 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin