84% buddypress-monster-widget

Code Review | BuddyPress Monster Widget

WordPress plugin BuddyPress Monster Widget scored84%from 54 tests.

About plugin

  • Plugin page: buddypress-monste...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 17, 2014
  • Latest release: Jul 31, 2016
  • Number of updates: 8
  • Update frequency: every 81.9 days
  • Top authors: mercime (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /3,591 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.60ms] Passed 4 tests

An overview of server-side resources used by BuddyPress Monster Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.10 ▼0.02
Dashboard /wp-admin3.33 ▲0.0243.72 ▼4.95
Posts /wp-admin/edit.php3.38 ▲0.0249.34 ▲2.41
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.56 ▼7.82
Media Library /wp-admin/upload.php3.25 ▲0.0239.49 ▲5.57

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for BuddyPress Monster Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.274.44 ▲2.7842.05 ▼4.94
Dashboard /wp-admin2,206 ▲155.85 ▼0.05113.26 ▲13.4742.41 ▼0.72
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0239.61 ▲1.6836.30 ▼1.10
Add New Post /wp-admin/post-new.php1,534 ▲123.23 ▲0.23582.21 ▼83.8651.37 ▼4.20
Media Library /wp-admin/upload.php1,391 ▲34.30 ▲0.0498.23 ▲3.3240.99 ▼0.74

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

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 | 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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/buddypress-monster-widget/buddypress-monster-widget.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Tested up to: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

buddypress-monster-widget/buddypress-monster-widget.php Passed 13 tests

This is the main PHP file of "BuddyPress Monster Widget" version 0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
114 characters long description:
A widget that allows for quick and easy testing of multiple BuddyPress widgets. Not intended for production sites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin91 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1287791

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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 functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin