Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.37MB] [CPU: ▲5.65ms] Passed 4 tests
This is a short check of server-side resources used by Simple Ajax Chat – Add a Fast, Secure Chat Box
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 48.19 ▲8.50 |
Dashboard /wp-admin | 3.73 ▲0.42 | 56.65 ▲9.11 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 52.42 ▲7.62 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 93.57 ▲1.51 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 38.42 ▲4.95 |
Simple Ajax Chat /wp-admin/options-general.php?page=simple_ajax_chat | 3.59 | 41.99 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 42 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_ajax_chat |
New WordPress options |
---|
sac_options |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Ajax Chat – Add a Fast, Secure Chat Box
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,036 ▲275 | 15.19 ▲0.94 | 6.90 ▲5.31 | 43.62 ▲4.18 |
Dashboard /wp-admin | 2,336 ▲158 | 6.14 ▲0.49 | 105.98 ▲4.05 | 40.54 ▼3.05 |
Posts /wp-admin/edit.php | 2,267 ▲167 | 3.40 ▲1.40 | 43.52 ▲6.99 | 31.11 ▼2.42 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.26 ▲0.20 | 583.85 ▼80.97 | 33.21 ▼18.36 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.10 ▼0.07 | 79.80 ▼16.50 | 41.12 ▼1.68 |
Simple Ajax Chat /wp-admin/options-general.php?page=simple_ajax_chat | 2,016 | 3.29 | 40.46 | 74.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/simple-ajax-chat/resources/sac.php
- > /wp-content/plugins/simple-ajax-chat/resources/nonce.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: chat box, ajax, instant message, messaging, chat...
simple-ajax-chat/simple-ajax-chat.php 92% from 13 tests
"Simple Ajax Chat – Add a Fast, Secure Chat Box" version 20231101...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "20231101...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,389 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 997 | 207 | 2,325 |
CSS | 1 | 33 | 25 | 64 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
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 | 53 | |
▷ Named functions | 53 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/sac-logo.png | 32.19KB | 11.17KB | ▼ 65.30% |
resources/sac-400.png | 29.92KB | 29.92KB | 0.00% |