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.20MB] [CPU: ▲2.13ms] Passed 4 tests
A check of server-side resources used by weclapp
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 44.61 ▲4.05 |
Dashboard /wp-admin | 3.51 ▲0.21 | 52.69 ▼0.95 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 56.28 ▲7.03 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 113.93 ▲21.03 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 37.81 ▼1.63 |
weclapp /wp-admin/options-general.php?page=weclapp-settings | 3.40 | 55.11 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 14 new options
New WordPress options |
---|
domain_name |
display_sort |
db_upgraded |
widget_recent-posts |
api_token |
display_alignment |
can_compress_scripts |
success_message |
theysaidso_admin_options |
contact_placement |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for weclapp
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲79 | 13.77 ▲0.43 | 5.97 ▲3.89 | 43.35 ▲1.25 |
Dashboard /wp-admin | 2,210 ▲4 | 5.86 ▲1.03 | 102.86 ▼9.30 | 40.44 ▼2.22 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.98 ▼0.06 | 42.50 ▲4.21 | 35.18 ▲3.16 |
Add New Post /wp-admin/post-new.php | 1,544 ▲2 | 23.07 ▲4.79 | 614.33 ▼24.35 | 48.97 ▼7.76 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.25 ▲0.06 | 96.20 ▼12.83 | 44.49 ▼1.31 |
weclapp /wp-admin/options-general.php?page=weclapp-settings | 806 | 2.03 | 26.05 | 34.56 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- display_sort
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- 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
Good news, no errors were detected
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/weclapp/weclapp.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: cloud, helpdesk, webinar, campaign, ticketing...
weclapp/weclapp.php Passed 13 tests
This is the main PHP file of "weclapp" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
This plugin integrates weclapp functionality into wordpress CMS
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin3,461 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 420 | 51 | 1,724 |
PO File | 6 | 403 | 578 | 773 |
PHP | 4 | 77 | 137 | 758 |
JavaScript | 1 | 7 | 30 | 137 |
Markdown | 1 | 38 | 0 | 69 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 36 | |
▷ Named functions | 36 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icons/new_select_inactive_hover.png | 0.23KB | 0.23KB | 0.42% |
assets/icons/action_arrowup_normal.png | 0.34KB | 0.33KB | ▼ 1.74% |
assets/icons/new_select_active_normal.png | 0.23KB | 0.23KB | ▼ 0.85% |
assets/icons/new_select_inactive_normal.png | 0.12KB | 0.12KB | 0.00% |
assets/icons/action_arrowdown_normal.png | 0.35KB | 0.34KB | ▼ 2.54% |