10% beevou

Code Review | Beevou

WordPress plugin Beevou scored10%from 54 tests.

About plugin

  • Plugin page: beevou
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: May 2, 2013
  • Latest release: May 2, 2013
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: jmalarcon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /794 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/beevou/beevou.php+16
    Constant BEEVOU_URL already defined

Server metrics [RAM: ▼1.92MB] [CPU: ▼59.03ms] Passed 4 tests

Analyzing server-side resources used by Beevou
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.89 ▼42.58
Dashboard /wp-admin2.09 ▼1.216.76 ▼45.83
Posts /wp-admin/edit.php2.09 ▼1.277.16 ▼49.75
Add New Post /wp-admin/post-new.php2.09 ▼3.808.13 ▼97.97
Media Library /wp-admin/upload.php2.09 ▼1.145.85 ▼34.30
Beevou /wp-admin/options-general.php?page=Beevou2.096.07

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Beevou
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.24 ▼0.401.85 ▲0.1444.88 ▲1.65
Dashboard /wp-admin2,199 ▲315.62 ▲0.0483.37 ▼17.6339.76 ▼5.83
Posts /wp-admin/edit.php2,107 ▲101.98 ▼0.1840.69 ▲1.3837.50 ▼2.19
Add New Post /wp-admin/post-new.php1,531 ▲523.22 ▲0.09633.24 ▼35.9854.22 ▼1.66
Media Library /wp-admin/upload.php1,398 ▼54.18 ▲0.01100.62 ▼2.2344.40 ▼1.01
Beevou /wp-admin/options-general.php?page=Beevou8172.0223.9425.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/beevou/beevou.php+16
    Constant BEEVOU_URL already defined
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=Beevou
    • > Notice in wp-content/plugins/beevou/beevou.php+16
    Constant BEEVOU_URL already defined
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=Beevou
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/options-general.php?page=Beevou
    • > Notice in wp-content/plugins/beevou/includes/admin.php+2
    Undefined index: beevou_hidden

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/beevou/beevou.php:15
    • > PHP Notice
      Undefined index: beevou_hidden in wp-content/plugins/beevou/includes/admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/beevou/includes/admin.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Beevou plugin administration panel), #2 (Vouchers being displayed in a page)
The official readme.txt might help

beevou/beevou.php Passed 13 tests

Analyzing the main PHP file in "Beevou" version 0.1
27 characters long description:
Display beevou.net vouchers

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin130 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24928130

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected