83% beehive

Code Review | Beehive

WordPress plugin Beehive scored 83% from 54 tests.

About plugin

  • Plugin page: beehive
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 16, 2015
  • Latest release: Jun 16, 2022
  • Number of updates: 22
  • Update frequency: every 110.7 days
  • Top authors: ermin_islamagic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

60+ active / 2,627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.92ms] Passed 4 tests

An overview of server-side resources used by Beehive
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.28 ▼5.48
Dashboard /wp-admin3.33 ▲0.0245.12 ▼1.62
Posts /wp-admin/edit.php3.38 ▲0.0246.86 ▲0.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.44 ▼3.33
Media Library /wp-admin/upload.php3.25 ▲0.0231.91 ▼1.24

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
widget_beehive_widget
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Beehive
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲15813.60 ▼1.088.51 ▲6.2344.32 ▲0.05
Dashboard /wp-admin2,209 ▲215.85 ▼0.1697.00 ▼20.3541.27 ▼1.22
Posts /wp-admin/edit.php2,092 ▲31.98 ▼0.0138.93 ▲3.5436.58 ▲1.99
Add New Post /wp-admin/post-new.php1,534 ▲123.21 ▲0.01637.05 ▼3.1352.72 ▲0.42
Media Library /wp-admin/upload.php1,388 ▲64.22 ▼0.0393.56 ▼10.1943.91 ▲1.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_beehive_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/beehive/partials/admin/beehive_widget_settings.php

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (Beehive widget settings configuration 1), #2 (Preview of the widget settings above), #3 (Beehive widget settings configuration 2), #4 (Preview of the widget settings above), #5 (Beehive widget settings configuration 3), #6 (Preview of the widget settings above)
  • Donate link: Please fix this invalid url: ""
  • Tags: You are using too many tags: 17 tag instead of maximum 10
The official readme.txt might help

beehive/beehive.php Passed 13 tests

The main PHP script in "Beehive" version 1.0.1 is automatically included on every request by WordPress
83 characters long description:
Serve your readers an easy access to your posts or pages through WordPress widgets.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin378 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP53729378
JavaScript1010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.81MB with 0.51MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png104.80KB24.40KB▼ 76.72%
screenshot-3.png12.09KB6.87KB▼ 43.22%
screenshot-1.png12.20KB6.87KB▼ 43.72%
screenshot-6.png336.80KB71.47KB▼ 78.78%
screenshot-4.png351.21KB92.80KB▼ 73.58%