80% bonaire

Code Review | Bonaire

WordPress plugin Bonaire scored80%from 54 tests.

About plugin

  • Plugin page: bonaire
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 4, 2020
  • Latest release: Mar 17, 2023
  • Number of updates: 47
  • Update frequency: every 25.2 days
  • Top authors: demispatti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /676 total downloads

Benchmarks

Plugin footprint 65% 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: ▼1.26MB] [CPU: ▼55.18ms] Passed 4 tests

A check of server-side resources used by Bonaire
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1838.82 ▼6.64
Dashboard /wp-admin2.69 ▼0.6510.12 ▼55.33
Posts /wp-admin/edit.php2.70 ▼0.668.69 ▼42.94
Add New Post /wp-admin/post-new.php2.69 ▼3.1910.47 ▼92.80
Media Library /wp-admin/upload.php2.70 ▼0.538.25 ▼29.65

Server storage [IO: ▲1.84MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 83 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
bonaire_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Bonaire
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲12614.86 ▲0.661.90 ▲0.1544.57 ▲1.87
Dashboard /wp-admin2,278 ▲936.51 ▲0.61123.08 ▲23.5536.82 ▼1.40
Posts /wp-admin/edit.php2,091 ▲22.06 ▲0.0645.14 ▲8.0333.94 ▲0.58
Add New Post /wp-admin/post-new.php1,516 ▼423.15 ▼0.27616.53 ▼77.3137.96 ▼17.66
Media Library /wp-admin/upload.php1,393 ▲114.09 ▼0.1282.64 ▼25.0241.57 ▼1.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/bonaire/admin/includes/class-mail.php+17
    include(wp-content/plugins/bonaire/../contact-form-7/includes/swv/schema-holder.php): failed to open stream: No such file or directory
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • bonaire_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors not specified
The official readme.txt might help

bonaire/bonaire.php Passed 13 tests

The principal PHP file in "Bonaire" v. 0.1.1 is loaded by WordPress automatically on each request
75 characters long description:
A very simple email client for Contact Form 7 in combination with Flamingo.

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
Good job! No executable or dangerous file extensions detected15,425 lines of code in 62 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript121,7213,3437,061
PHP271,1302,6733,696
CSS164001123,419
PO File1359702763
Markdown61290486

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity18.92
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces6
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes416.00%
Methods221
▷ Static methods135.88%
▷ Public methods11652.49%
▷ Protected methods00.00%
▷ Private methods10547.51%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin