84% broadly

Code Review | Broadly for WordPress

WordPress plugin Broadly for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: broadly
  • Plugin version: 3.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.2-5.3
  • WordPress version: 6.3.1
  • First release: Aug 8, 2015
  • Latest release: Nov 29, 2019
  • Number of updates: 37
  • Update frequency: every 76.0 days
  • Top authors: broadly (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /15,150 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.02MB] [CPU: ▼5.23ms] Passed 4 tests

This is a short check of server-side resources used by Broadly for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.82 ▼0.98
Dashboard /wp-admin3.34 ▼0.0152.87 ▼13.26
Posts /wp-admin/edit.php3.39 ▲0.0348.67 ▲0.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.64 ▼7.49
Media Library /wp-admin/upload.php3.26 ▲0.0338.99 ▲1.55
Broadly Setup /wp-admin/options-general.php?page=broadly3.2331.33

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Broadly for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.55 ▼0.881.68 ▼0.3443.86 ▲0.98
Dashboard /wp-admin2,210 ▲255.87 ▲0.99100.18 ▼10.7545.34 ▲1.76
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0737.97 ▲0.7432.92 ▼0.26
Add New Post /wp-admin/post-new.php1,542 ▲2823.52 ▲6.00674.57 ▲15.8552.10 ▲4.87
Media Library /wp-admin/upload.php1,392 ▲44.17 ▼0.08100.78 ▼2.7744.09 ▼4.85
Broadly Setup /wp-admin/options-general.php?page=broadly7882.0526.5529.98

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_setting() in wp-content/plugins/broadly/settings.class.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/broadly/settings-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/broadly/broadly.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were not plugin tags detected

broadly/broadly.php Passed 13 tests

The main PHP file in "Broadly for WordPress" ver. 3.0.2 adds more information about the plugin and also serves as the entry point for this plugin
83 characters long description:
Dynamic integration of your Broadly reviews within your existing WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin195 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP36085195

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods981.82%
▷ Protected methods00.00%
▷ Private methods218.18%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin