Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼145.19ms] Passed 4 tests
This is a short check of server-side resources used by SmartAccounts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.00 | 27.75 ▲1.06 |
Dashboard /wp-admin | 3.06 ▼0.00 | 37.22 ▼5.21 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 36.55 ▼1.35 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 72.93 ▼571.82 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 25.56 ▼2.38 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by SmartAccounts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲80 | 16.02 ▲0.01 | 7.18 ▲1.37 | 90.99 ▲12.71 |
Dashboard /wp-admin | 2,943 ▲47 | 6.10 ▼0.06 | 114.05 ▼15.78 | 166.40 ▼8.50 |
Posts /wp-admin/edit.php | 2,755 ▲15 | 3.24 ▲0.01 | 64.01 ▼2.62 | 138.49 ▼2.43 |
Add New Post /wp-admin/post-new.php | 3,819 ▲113 | 19.10 ▼0.04 | 415.94 ▼3.67 | 154.77 ▼16.70 |
Media Library /wp-admin/upload.php | 1,762 ▲10 | 5.50 ▼0.02 | 143.79 ▲7.94 | 185.76 ▼5.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/smartaccounts/wp-background-process.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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== smartaccounts ===
) - Contributors: Contributors not specified
smartaccounts/smartaccounts.php 92% from 13 tests
This is the main PHP file of "SmartAccounts" version 3.8.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.8" instead of "4.8.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin16,449 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,482 | 1,497 | 14,911 |
PHP | 10 | 313 | 344 | 1,538 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 26.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 2 | 22.22% |
▷ Concrete classes | 7 | 77.78% |
▷ Final classes | 0 | 0.00% |
Methods | 65 | |
▷ Static methods | 12 | 18.46% |
▷ Public methods | 40 | 61.54% |
▷ Protected methods | 19 | 29.23% |
▷ Private methods | 6 | 9.23% |
Functions | 1 | |
▷ Named functions | 1 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin