78% bbpress-simple-advert-units

Code Review | bbpress Simple Advert Units

WordPress plugin bbpress Simple Advert Units scored78%from 54 tests.

About plugin

  • Plugin page: bbpress-simple-ad...
  • Plugin version: 0.41
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Oct 7, 2012
  • Latest release: Nov 6, 2014
  • Number of updates: 24
  • Update frequency: every 66.3 days
  • Top authors: jezza101 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active /10,184 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.06MB] [CPU: ▼11.29ms] Passed 4 tests

An overview of server-side resources used by bbpress Simple Advert Units
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.81 ▼6.91
Dashboard /wp-admin3.38 ▲0.0352.44 ▼17.91
Posts /wp-admin/edit.php3.43 ▲0.0752.69 ▲4.20
Add New Post /wp-admin/post-new.php5.96 ▲0.0789.27 ▼20.51
Media Library /wp-admin/upload.php3.30 ▲0.0737.46 ▲0.19
Ad Units /wp-admin/edit.php?post_type=forum&page=bbp_simpleadvertunits_menu3.0823.55

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
bbp_simpleadvertunits_options
widget_theysaidso_widget
bbp_simpleadvertunits_version

Browser metrics Passed 4 tests

This is an overview of browser requirements for bbpress Simple Advert Units
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.22 ▼1.431.88 ▼0.1641.34 ▼3.06
Dashboard /wp-admin2,203 ▲155.76 ▲0.9397.72 ▼11.0939.96 ▼7.11
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0139.12 ▲3.6836.10 ▼1.63
Add New Post /wp-admin/post-new.php1,514 ▼517.67 ▼5.59693.84 ▲9.4160.15 ▼0.21
Media Library /wp-admin/upload.php1,382 ▼64.13 ▼0.10100.12 ▲0.1644.28 ▲0.04
Ad Units /wp-admin/edit.php?post_type=forum&page=bbp_simpleadvertunits_menu280.440.073.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • bbp_simpleadvertunits_options
    • bbp_simpleadvertunits_version
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just 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 is_admin() in wp-content/plugins/bbpress-simple-advert-units/bbpress-simple-advert-units.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=forum&page=bbp_simpleadvertunits_menu
    • > Network (severe)
    wp-admin/edit.php?post_type=forum&page=bbp_simpleadvertunits_menu - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === bbpress-simple-advert-units === )
  • Screenshots: Please add images for these screenshots: #3 (Where to create ad units), #4 (The plugin admin page), #5 (Creating a new unit)
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

bbpress-simple-advert-units/bbpress-simple-advert-units.php Passed 13 tests

The main file in "bbpress Simple Advert Units" v. 0.41 serves as a complement to information provided in readme.txt and as the entry point to the plugin
41 characters long description:
Insert ad units into your bbPress 2 forum

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
Good job! No executable or dangerous file extensions detected347 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP119674347

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.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
There are no PNG files in this plugin