83% beamer

Code Review | Beamer - newsfeed and push notifications

WordPress plugin Beamer - newsfeed and push notifications scored83%from 54 tests.

About plugin

  • Plugin page: beamer
  • Plugin version: 5.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: May 4, 2018
  • Latest release: Sep 20, 2023
  • Number of updates: 143
  • Update frequency: every 13.7 days
  • Top authors: joincube (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

500+ active /27,270 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.25MB] [CPU: ▲0.60ms] Passed 4 tests

An overview of server-side resources used by Beamer - newsfeed and push notifications
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2141.61 ▼4.95
Dashboard /wp-admin3.57 ▲0.2749.91 ▲0.13
Posts /wp-admin/edit.php3.68 ▲0.3355.81 ▲3.09
Add New Post /wp-admin/post-new.php6.15 ▲0.2695.83 ▲4.71
Media Library /wp-admin/upload.php3.49 ▲0.2739.28 ▲4.11
Beamer Settings /wp-admin/options-general.php?page=beamer-settings3.4637.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Beamer - newsfeed and push notifications
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.24 ▼1.141.79 ▼0.0043.55 ▼2.59
Dashboard /wp-admin2,218 ▲304.86 ▼0.03102.18 ▼13.8742.23 ▲2.35
Posts /wp-admin/edit.php2,106 ▲142.04 ▼0.0140.80 ▲2.6034.85 ▲1.22
Add New Post /wp-admin/post-new.php1,547 ▲1423.16 ▲0.03632.15 ▼76.7150.34 ▼1.28
Media Library /wp-admin/upload.php1,400 ▲124.21 ▲0.0698.19 ▼9.4248.84 ▲2.90
Beamer Settings /wp-admin/options-general.php?page=beamer-settings1,7871.8328.7970.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beamer/beamer-api-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/beamer/beamer-settings.php:1071
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beamer/beamer-api-metabox.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function bmr_url_signup() in wp-content/plugins/beamer/beamer-settings-panel.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/beamer/beamer-settings.php:1071

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

beamer/index.php 85% from 13 tests

The entry point to "Beamer - newsfeed and push notifications" version 5.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("beamer.php" instead of "index.php")

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 plugin2,399 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP51392691,841
CSS2964442
SVG808102
Markdown14013
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity85.50
▷ Minimum class complexity1.00
▷ Maximum class complexity170.00
Average method complexity3.82
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods60
▷ Static methods00.00%
▷ Public methods60100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin