84% triboon

Code Review | Triboon

WordPress plugin Triboon scored84%from 54 tests.

About plugin

  • Plugin page: triboon
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.7.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Jul 18, 2021
  • Number of updates: 4
  • Update frequency: every 3.0 days
  • Top authors: armindelgosarmaher (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /257 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5040.62 ▼0.36
Dashboard /wp-admin3.60 ▲0.2949.74 ▲2.75
Posts /wp-admin/edit.php3.71 ▲0.3553.68 ▲3.84
Add New Post /wp-admin/post-new.php6.20 ▲0.3196.33 ▲1.11
Media Library /wp-admin/upload.php3.52 ▲0.2948.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲11413.41 ▼1.011.84 ▼0.5737.59 ▼12.96
Dashboard /wp-admin2,225 ▲375.05 ▼0.76101.61 ▼14.4991.03 ▲47.98
Posts /wp-admin/edit.php2,126 ▲372.04 ▲0.0638.44 ▼1.0439.84 ▲4.09
Add New Post /wp-admin/post-new.php1,708 ▲18824.34 ▲0.96688.06 ▼9.4257.59 ▼4.86
Media Library /wp-admin/upload.php1,414 ▲294.22 ▼0.0297.70 ▼19.8889.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP101912561,223
CSS1392276
JavaScript1116102

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 code0.32
Average class complexity58.50
▷ Minimum class complexity18.00
▷ Maximum class complexity99.00
Average method complexity5.42
▷ Minimum method complexity1.00
▷ Maximum method complexity53.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods1557.69%
▷ Public methods1973.08%
▷ Protected methods13.85%
▷ Private methods623.08%
Functions35
▷ Named functions35100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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