Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.37ms] Passed 4 tests
Analyzing server-side resources used by Dolibarr REST API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 41.86 ▼7.36 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.60 ▲1.30 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.67 ▲3.33 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 85.88 ▼16.36 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.81 ▲0.94 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
dolibarr_rest_api_version |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Dolibarr REST API
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.19 ▼1.10 | 4.58 ▲2.82 | 43.27 ▼3.25 |
Dashboard /wp-admin | 2,206 ▲17 | 4.91 ▼0.98 | 94.12 ▼18.59 | 37.90 ▼1.85 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.18 ▲0.20 | 33.10 ▼3.24 | 33.78 ▲2.40 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.18 ▲5.65 | 639.30 ▼68.31 | 51.94 ▼25.77 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.18 ▼0.04 | 95.17 ▼7.09 | 42.71 ▼3.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- dolibarr_rest_api_version
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: wordpress, template, plugin
dolibarr-rest-api/dolibarr-rest-api.php Passed 13 tests
This is the main PHP file of "Dolibarr REST API" 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
61 characters long description:
Plugin helper to connect to the Dolibarr (free ERP) REST API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,271 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 445 | 885 | 1,078 |
JavaScript | 5 | 25 | 15 | 134 |
PO File | 1 | 7 | 10 | 45 |
JSON | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 28.83 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 3 | 4.35% |
▷ Public methods | 67 | 97.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 2.90% |
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
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/icon-256x256.png | 3.73KB | 3.94KB | 0.00% |
assets/img/icon.png | 4.22KB | 4.47KB | 0.00% |
assets/img/icon-128x128.png | 1.65KB | 1.72KB | 0.00% |