84% beam

Code Review | Beam

WordPress plugin Beam scored84%from 54 tests.

About plugin

  • Plugin page: beam
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.0-4.9
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: Dec 4, 2017
  • Number of updates: 6
  • Update frequency: every 95.3 days
  • Top authors: bobbywalters (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /972 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.57ms] Passed 4 tests

Analyzing server-side resources used by Beam
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0051.89 ▲11.27
Dashboard /wp-admin3.31 ▲0.0143.31 ▼5.27
Posts /wp-admin/edit.php3.36 ▲0.0046.79 ▼2.25
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.19 ▼15.46
Media Library /wp-admin/upload.php3.23 ▲0.0034.18 ▲4.71

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Beam
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▼0.011.64 ▲0.0540.34 ▲2.70
Dashboard /wp-admin2,195 ▲215.54 ▼0.0385.06 ▼5.0841.40 ▲2.80
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0138.37 ▼1.5034.57 ▼4.00
Add New Post /wp-admin/post-new.php1,526 ▼923.39 ▲5.01637.22 ▲2.1256.33 ▼22.59
Media Library /wp-admin/upload.php1,403 ▼04.19 ▲0.01103.37 ▲5.3544.51 ▲0.88

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/beam/beam.php:665

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: tunnel, remote api, socket, proxy, http...

beam/beam.php 92% from 13 tests

The main file in "Beam" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected396 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191179396

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity112.00
▷ Minimum class complexity112.00
▷ Maximum class complexity112.00
Average method complexity23.20
▷ Minimum method complexity1.00
▷ Maximum method complexity77.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods360.00%
▷ Protected methods240.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected