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.01MB] [CPU: ▼5.95ms] Passed 4 tests
A check of server-side resources used by Ejabberd Account Tools
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.47 ▼7.27 |
Dashboard /wp-admin | 3.31 ▼0.04 | 48.60 ▼16.73 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.24 ▲3.68 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.39 ▲1.91 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.32 ▼1.71 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Ejabberd Account Tools
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.24 ▼0.97 | 1.64 ▼0.07 | 39.19 ▼2.26 |
Dashboard /wp-admin | 2,206 ▲21 | 4.84 ▼0.06 | 108.29 ▼8.23 | 41.24 ▲0.35 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.02 | 39.98 ▲0.65 | 34.59 ▲1.03 |
Add New Post /wp-admin/post-new.php | 1,514 ▼5 | 17.53 ▼5.57 | 657.18 ▼24.06 | 56.46 ▼3.29 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.25 ▲0.07 | 100.02 ▼5.31 | 47.92 ▲1.22 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Interface 'Gregwar\\Captcha\\PhraseBuilderInterface' not found in wp-content/plugins/ejabberd-account-tools/third-party/Captcha/PhraseBuilder.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Gregwar\\Captcha\\CaptchaBuilderInterface' not found in wp-content/plugins/ejabberd-account-tools/third-party/Captcha/CaptchaBuilder.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: ejabberd, jabber, xmpp
ejabberd-account-tools/ejabat.php 92% from 13 tests
The entry point to "Ejabberd Account Tools" version 2.7 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("ejabberd-account-tools.php" instead of "ejabat.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin5,444 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 359 | 1,087 | 4,022 |
JavaScript | 6 | 186 | 294 | 1,239 |
CSS | 4 | 12 | 18 | 183 |
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.33 |
Average class complexity | 19.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 66 | |
▷ Static methods | 5 | 7.58% |
▷ Public methods | 42 | 63.64% |
▷ Protected methods | 24 | 36.36% |
▷ Private methods | 0 | 0.00% |
Functions | 124 | |
▷ Named functions | 97 | 78.23% |
▷ Anonymous functions | 27 | 21.77% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected