Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.67ms] Passed 4 tests
Server-side resources used by Wayra - Click to Order or Chat
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 46.45 ▲4.27 |
Dashboard /wp-admin | 3.32 ▼0.02 | 55.93 ▼10.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.35 ▲1.09 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.38 ▼7.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.00 ▼1.61 |
Click to Order or Chat /wp-admin/options-general.php?page=click-order-chat | 3.37 | 31.55 |
Server storage [IO: ▲0.36MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wayra - Click to Order or Chat
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.34 ▲0.06 | 1.63 ▼0.02 | 49.86 ▲8.19 |
Dashboard /wp-admin | 2,200 ▲20 | 5.59 ▲0.00 | 85.36 ▼8.23 | 37.71 ▼7.45 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 1.99 ▼0.04 | 36.04 ▼2.06 | 35.41 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.61 ▲0.54 | 636.31 ▼10.17 | 54.68 ▼2.85 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.35 ▼0.00 | 98.81 ▼0.48 | 41.91 ▼5.47 |
Click to Order or Chat /wp-admin/options-general.php?page=click-order-chat | 983 | 1.83 | 29.81 | 46.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wayra-click-to-order-or-chat/public/partials/click-order-chat-public-button.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wayra-click-to-order-or-chat/public/partials/click-order-chat-public-floating-button.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5, #6, #7, #8, #9 in wayra-click-to-order-or-chat/assets to your readme.txt
wayra-click-to-order-or-chat/click-order-chat.php 85% from 13 tests
The entry point to "Wayra - Click to Order or Chat" version 1.0.8 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wayra-click-to-order-or-chat.php" instead of "click-order-chat.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 277 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,809 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 12 | 900 | 948 | 2,921 |
PHP | 13 | 239 | 617 | 702 |
CSS | 2 | 22 | 6 | 153 |
JavaScript | 2 | 6 | 2 | 33 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 2 | 4.88% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 19.51% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/floating-02.png | 2.95KB | 2.33KB | ▼ 20.91% |
admin/images/floating-01.png | 1.01KB | 1.09KB | 0.00% |