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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.61ms] Passed 4 tests
An overview of server-side resources used by Dexonline Searchbox
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.80 ▲0.72 |
Dashboard /wp-admin | 3.37 ▲0.06 | 44.67 ▼4.09 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.05 ▼0.78 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 100.59 ▼2.27 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.34 ▲2.03 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_dexonline_searchbox_widget |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Dexonline Searchbox
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲152 | 13.62 ▼0.69 | 6.03 ▲4.19 | 41.51 ▼4.01 |
Dashboard /wp-admin | 2,204 ▲16 | 5.83 ▲0.73 | 104.43 ▼0.85 | 39.81 ▼1.82 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.00 ▼0.05 | 38.22 ▼2.81 | 33.73 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,518 ▼15 | 23.34 ▲0.02 | 626.21 ▼24.01 | 57.53 ▼0.40 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.04 | 101.97 ▲5.32 | 41.49 ▼2.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_dexonline_searchbox_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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 | 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 items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/dexonline-searchbox/admin/partials/dexonline-admin-admin-display.php
- > /wp-content/plugins/dexonline-searchbox/public/partials/dexonline-searchbox-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/dexonline-searchbox/includes/class-dexonline-searchbox-widget.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
- Screenshots: A description for screenshot #2 is missing in dexonline-searchbox/assets to your readme.txt
dexonline-searchbox/dexonline-searchbox.php Passed 13 tests
The main PHP script in "Dexonline Searchbox" version 1.0 is automatically included on every request by WordPress
66 characters long description:
Adds a searchbox to help easily search romanian words definitions.
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
No dangerous file extensions were detected303 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 133 | 595 | 207 |
PO File | 3 | 9 | 18 | 70 |
JavaScript | 2 | 6 | 27 | 19 |
CSS | 2 | 2 | 8 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 1.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected