83% beebee-mini

Code Review | Beebee Mini

WordPress plugin Beebee Mini scored83%from 54 tests.

About plugin

  • Plugin page: beebee-mini
  • Plugin version: 1.3.2
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 15, 2021
  • Latest release: Nov 29, 2022
  • Number of updates: 37
  • Update frequency: every 16.0 days
  • Top authors: hellobeebee (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,964 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲11.18MB] [CPU: ▲58.81ms] 75% from 4 tests

Server-side resources used by Beebee Mini
It is recommended to improve the following
  • Extra RAM: The extra memory usage must be under 5MB (currently 11.18MB on /wp-admin/upload.php)
PageMemory (MB)CPU Time (ms)
Home /14.63 ▲11.17102.38 ▲60.93
Dashboard /wp-admin14.74 ▲11.44128.26 ▲76.42
Posts /wp-admin/edit.php14.96 ▲11.60138.76 ▲90.40
Add New Post /wp-admin/post-new.php16.47 ▲10.58109.88 ▲13.84
Media Library /wp-admin/upload.php14.76 ▲11.53120.15 ▲84.06

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 497 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
recovery_mode_email_last_sent
widget_recent-posts
theysaidso_admin_options
acfe
acf_version
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Beebee Mini: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,006 ▲26015.12 ▲0.751.71 ▼0.0542.24 ▼2.33
Dashboard /wp-admin2,415 ▲2277.04 ▲2.15145.18 ▲26.8448.89 ▲3.26
Posts /wp-admin/edit.php2,868 ▲77910.05 ▲8.07205.37 ▲168.0142.15 ▲9.91
Add New Post /wp-admin/post-new.php45 ▼1,4690.44 ▼17.150.07 ▼685.609.37 ▼55.59
Media Library /wp-admin/upload.php2,020 ▲63210.84 ▲6.72229.79 ▲116.6253.71 ▲6.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • acf_version
    • widget_recent-comments
    • widget_recent-posts
    • acfe
    • db_upgraded
    • can_compress_scripts
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 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
Please take a closer look at the following
  • 116× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beebee-mini/bee-admin/admin/library/framework/includes/l10n.php:153
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/beebee-mini/bee-admin/admin/library/framework/includes/fields/class-acf-field-date_picker.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/beebee-mini/bee-admin/admin/library/framework/includes/fields/class-acf-field-wysiwyg.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/beebee-mini/bee-admin/admin/library/framework/includes/local-fields.php:4
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/beebee-mini/bee-admin/admin/library/framework/includes/admin/views/html-location-rule.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beebee-mini/bee-admin/admin/library/framework/includes/acf-input-functions.php:103
    • > PHP Fatal error
      Uncaught Error: Call to undefined function acf_idify() in wp-content/plugins/beebee-mini/bee-admin/admin/library/framework/includes/admin/views/field-group-field.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beebee-mini/bee-admin/admin/library/framework/includes/forms/form-taxonomy.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/beebee-mini/bee-admin/admin/library/framework/includes/fields/class-acf-field-taxonomy.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beebee-mini/bee-content/themes/_beebee_gallery/theme_terms.php:137

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: beebeemini, beebee, mini program api

beebee-mini/wp-mini-beebee.php 85% from 13 tests

The main file in "Beebee Mini" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 170 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("beebee-mini.php" instead of "wp-mini-beebee.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin196,188 lines of code in 422 files:
LanguageFilesBlank linesComment linesLines of code
PHP33323,50227,470138,594
JavaScript388,2647,28543,330
CSS281,30676710,595
PO File21,6402,9553,126
Markdown71110248
SVG900154
JSON500141

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity20.61
▷ Minimum class complexity1.00
▷ Maximum class complexity122.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity68.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes248
▷ Abstract classes20.81%
▷ Concrete classes24699.19%
▷ Final classes00.00%
Methods1,933
▷ Static methods261.35%
▷ Public methods1,88497.47%
▷ Protected methods110.57%
▷ Private methods381.97%
Functions733
▷ Named functions68092.77%
▷ Anonymous functions537.23%
Constants17
▷ Global constants1588.24%
▷ Class constants211.76%
▷ Public constants2100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
22 PNG files occupy 1.30MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bee-admin/static/img/yin.png23.08KB18.26KB▼ 20.89%
bee-admin/static/img/cloud.png92.14KB54.89KB▼ 40.43%
bee-admin/static/img/cloudy.png40.28KB16.99KB▼ 57.82%
bee-content/themes/_beebee_sleep/img/xsm_1.png82.80KB90.48KB0.00%
bee-admin/admin/library/framework/assets/images/acf-logo.png3.40KB3.39KB0.23%