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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼2.37MB] [CPU: ▼337.36ms] Passed 4 tests
Server-side resources used by Connecto
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 55.08 ▲2.04 |
Dashboard /wp-admin | 1.96 ▼1.44 | 4.19 ▼28.73 |
Posts /wp-admin/edit.php | 1.96 ▼1.68 | 3.86 ▼30.89 |
Add New Post /wp-admin/post-new.php | 1.96 ▼5.00 | 4.99 ▼1,267.02 |
Media Library /wp-admin/upload.php | 1.96 ▼1.34 | 3.69 ▼22.80 |
Server storage [IO: ▲0.59MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 32 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Connecto
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,803 ▲81 | 16.14 ▲0.14 | 5.97 ▼0.43 | 2.02 ▼0.55 |
Dashboard /wp-admin | 2,911 ▲56 | 6.25 ▲0.05 | 115.63 ▼18.72 | 171.87 ▲12.34 |
Posts /wp-admin/edit.php | 2,708 ▲14 | 2.95 ▼0.29 | 64.05 ▲3.29 | 144.40 ▲0.33 |
Add New Post /wp-admin/post-new.php | 1,674 ▲13 | 17.58 ▲0.53 | 421.00 ▼19.01 | 159.01 ▲0.66 |
Media Library /wp-admin/upload.php | 1,715 ▲17 | 5.51 ▼0.02 | 123.03 ▼27.48 | 210.26 ▲15.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/connecto/public/class-connecto.php+117
Undefined property: Connecto::$defaults
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connecto/admin/views/admin.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/connecto/admin/views/notifications.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
No plugin tags provided
connecto/connecto.php 92% from 13 tests
This is the main PHP file of "Connecto" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected303 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 90 | 383 | 293 |
JavaScript | 2 | 8 | 2 | 10 |
CSS | 2 | 0 | 2 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 7 | 24.14% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.55MB with 0.37MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 162.29KB | 85.38KB | ▼ 47.39% |
assets/screenshot-1.png | 152.47KB | 47.70KB | ▼ 68.71% |
assets/screenshot-4.png | 68.36KB | 26.59KB | ▼ 61.11% |
assets/screenshot-5.png | 38.77KB | 15.48KB | ▼ 60.07% |
admin/assets/img/icon.png | 17.98KB | 0.27KB | ▼ 98.47% |