84% beamtheme-addons

Code Review | BeamTheme Addons

WordPress plugin BeamTheme Addons scored 84% from 54 tests.

About plugin

  • Plugin page: beamtheme-addons
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.6
  • WordPress version: 6.3.1
  • First release: Sep 1, 2016
  • Latest release: Sep 1, 2016
  • Number of updates: 14
  • Update frequency: N/A
  • Top authors: enter5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,741 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by BeamTheme Addons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.36 ▼9.19
Dashboard /wp-admin3.31 ▲0.0046.50 ▼4.68
Posts /wp-admin/edit.php3.36 ▲0.0049.03 ▼0.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.05 ▼7.73
Media Library /wp-admin/upload.php3.23 ▲0.0037.45 ▲1.94

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
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

BeamTheme Addons: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.131.55 ▼0.2836.95 ▼7.57
Dashboard /wp-admin2,206 ▲185.83 ▲0.9594.42 ▼14.3438.77 ▼3.30
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0434.16 ▼2.6735.38 ▼4.75
Add New Post /wp-admin/post-new.php1,528 ▼523.52 ▲0.19609.39 ▼78.3855.97 ▲5.13
Media Library /wp-admin/upload.php1,388 ▼04.25 ▲0.0595.57 ▼11.3240.12 ▼3.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_theme() in wp-content/plugins/beamtheme-addons/beam-addons.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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: addons, sidebar, post, widget, recent...

beamtheme-addons/beam-addons.php 92% from 13 tests

Analyzing the main PHP file in "BeamTheme Addons" version 1.0.1
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("beamtheme-addons.php" instead of "beam-addons.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 plugin84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2245184

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity4.50
▷ Minimum method complexity1.00
▷ Maximum method complexity11.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%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected