Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼11.35ms] Passed 4 tests
Server-side resources used by Ajax Message
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 22.37 ▼21.42 |
Dashboard /wp-admin | 3.42 ▲0.11 | 45.47 ▼3.57 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.74 ▼4.95 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 79.58 ▼15.45 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 35.67 ▲3.54 |
Ajax Message /wp-admin/options-general.php?page=ae_options_group | 3.15 | 25.86 |
Server storage [IO: ▲0.77MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
ajax-message |
widget_ae |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Ajax Message
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲157 | 13.59 ▼0.77 | 5.42 ▲3.34 | 36.94 ▼5.68 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.03 | 103.15 ▼14.75 | 40.13 ▼3.14 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.02 ▼0.03 | 38.51 ▼0.55 | 35.62 ▲1.67 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 17.88 ▼5.26 | 675.92 ▲73.66 | 58.68 ▲7.40 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.01 | 93.65 ▲0.86 | 47.79 ▲5.26 |
Ajax Message /wp-admin/options-general.php?page=ae_options_group | 1,072 | 2.08 | 23.59 | 33.74 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_ae
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=ae_options_group
- > Warning in wp-content/plugins/ajax-message/ajax-message.php+93
Use of undefined constant jquery - assumed 'jquery' (this will throw an Error in a future version of PHP)
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: contact, form, feedback, contact form, ajax
ajax-message/ajax-message.php 92% from 13 tests
Analyzing the main PHP file in "Ajax Message" version 1.0
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin3,295 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 3 | 2,227 |
CSS | 4 | 15 | 58 | 506 |
PHP | 1 | 70 | 31 | 457 |
JavaScript | 2 | 7 | 6 | 105 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 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
No PNG images were found in this plugin