10% broadednet

Code Review | BroadedNet

WordPress plugin BroadedNet scored10%from 54 tests.

About plugin

  • Plugin page: broadednet
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Aug 21, 2014
  • Latest release: Jun 2, 2015
  • Number of updates: 46
  • Update frequency: every 6.2 days
  • Top authors: emuki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,575 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/broadednet/broadedNET.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; BroadedNet has a deprecated constructor

Server metrics [RAM: ▼1.87MB] [CPU: ▼56.24ms] Passed 4 tests

This is a short check of server-side resources used by BroadedNet
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.339.95 ▼32.58
Dashboard /wp-admin2.15 ▼1.196.31 ▼60.16
Posts /wp-admin/edit.php2.15 ▼1.206.43 ▼43.79
Add New Post /wp-admin/post-new.php2.15 ▼3.735.39 ▼88.44
Media Library /wp-admin/upload.php2.15 ▼1.086.80 ▼28.19

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_broadednet
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by BroadedNet
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.56 ▼0.802.00 ▲0.2441.63 ▼3.70
Dashboard /wp-admin2,203 ▲155.85 ▲0.9897.60 ▼26.5442.99 ▲2.36
Posts /wp-admin/edit.php2,086 ▼62.01 ▲0.0238.36 ▼2.9031.12 ▼7.12
Add New Post /wp-admin/post-new.php1,533 ▼023.28 ▲0.05656.65 ▼42.5268.31 ▲1.97
Media Library /wp-admin/upload.php1,385 ▲64.12 ▼0.12109.35 ▲2.3547.80 ▼2.11

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
    • > Deprecated in wp-content/plugins/broadednet/broadedNET.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; BroadedNet has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_broadednet
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/broadednet/broadedNET.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: blog traffic, traffic, blog promote, blog, blog netwok...

broadednet/broadedNET.php 92% from 13 tests

The principal PHP file in "BroadedNet" v. 1.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("broadednet.php" instead of "broadedNET.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin165 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12618165

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity5.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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin