Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.31MB] [CPU: ▲1.84ms] Passed 4 tests
Server-side resources used by Triboon
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 40.62 ▼0.36 |
Dashboard /wp-admin | 3.60 ▲0.29 | 49.74 ▲2.75 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 53.68 ▲3.84 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 96.33 ▲1.11 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 48.10 ▲14.35 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 10 new options
New tables |
---|
wp_triboon |
New WordPress options |
---|
notif_check |
triboon_logo |
widget_recent-comments |
can_compress_scripts |
triboon_db_version |
widget_theysaidso_widget |
check_new_reportage |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Triboon
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲114 | 13.41 ▼1.01 | 1.84 ▼0.57 | 37.59 ▼12.96 |
Dashboard /wp-admin | 2,225 ▲37 | 5.05 ▼0.76 | 101.61 ▼14.49 | 91.03 ▲47.98 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.04 ▲0.06 | 38.44 ▼1.04 | 39.84 ▲4.09 |
Add New Post /wp-admin/post-new.php | 1,708 ▲188 | 24.34 ▲0.96 | 688.06 ▼9.42 | 57.59 ▼4.86 |
Media Library /wp-admin/upload.php | 1,414 ▲29 | 4.22 ▼0.02 | 97.70 ▼19.88 | 89.50 ▲41.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 9 options
- widget_theysaidso_widget
- db_upgraded
- triboon_logo
- can_compress_scripts
- notif_check
- widget_recent-comments
- check_new_reportage
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/triboon/admin/includes/triboon_reportage_table.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/triboon/admin/includes/triboon_reportage_table.php on line 10
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/triboon/admin/includes/triboon_reportage_table.php on line 10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/triboon/admin/includes/triboon_reportage_table.php on line 10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/triboon/admin/includes/triboon_reportage_table.php on line 10
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/triboon/admin/includes/triboon_reportage_table.php on line 10
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: woocommerce
triboon/wp_triboon.php 92% from 13 tests
The main file in "Triboon" v. 1.0.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("triboon.php" instead of "wp_triboon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,601 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 191 | 256 | 1,223 |
CSS | 1 | 39 | 2 | 276 |
JavaScript | 1 | 11 | 6 | 102 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 58.50 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 99.00 |
Average method complexity | 5.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 15 | 57.69% |
▷ Public methods | 19 | 73.08% |
▷ Protected methods | 1 | 3.85% |
▷ Private methods | 6 | 23.08% |
Functions | 35 | |
▷ Named functions | 35 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin