Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/webo-facto-connector/WeboFacto/Utils.php+24
Undefined index: plugin
Server metrics [RAM: ▼0.02MB] [CPU: ▼301.36ms] Passed 4 tests
Server-side resources used by Webo-facto
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 68.65 ▲0.53 |
Dashboard /wp-admin | 3.41 ▲0.00 | 43.55 ▲2.67 |
Posts /wp-admin/edit.php | 3.64 ▼0.00 | 50.91 ▼5.52 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 109.66 ▼1,195.65 |
Media Library /wp-admin/upload.php | 3.29 ▲0.00 | 34.83 ▼4.80 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Webo-facto
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,811 ▲53 | 15.77 ▲0.23 | 11.04 ▲0.67 | 3.49 ▼0.59 |
Dashboard /wp-admin | 2,911 ▲32 | 6.45 ▲0.05 | 183.84 ▼17.66 | 218.49 ▲6.90 |
Posts /wp-admin/edit.php | 2,670 ▼18 | 3.45 ▲0.02 | 85.05 ▲3.74 | 173.32 ▼4.72 |
Add New Post /wp-admin/post-new.php | 1,635 ▲41 | 16.76 ▼3.69 | 625.57 ▼20.16 | 205.51 ▼26.85 |
Media Library /wp-admin/upload.php | 1,695 ▼0 | 5.70 ▲0.08 | 190.70 ▼38.52 | 246.53 ▲9.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
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 | 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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/webo-facto-connector/WeboFacto/Soap.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/webo-facto-connector/webo-facto-connector.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: webo-facto, sso, medialibs
webo-facto-connector/webo-facto-connector.php 92% from 13 tests
Analyzing the main PHP file in "Webo-facto" version 1.25
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 242 characters long)
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
No dangerous file extensions were detected359 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 69 | 310 | 359 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 2 | 5.13% |
▷ Public methods | 29 | 74.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 25.64% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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
1 PNG file occupies 0.24MB with 0.18MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 242.97KB | 60.50KB | ▼ 75.10% |