90% yarpp-for-bbpress

Code Review | YARPP For bbpress

WordPress plugin YARPP For bbpress scored90%from 54 tests.

About plugin

  • Plugin page: yarpp-for-bbpress
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 22, 2013
  • Latest release: Nov 22, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: artharrison (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

50+ active /2,968 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.11ms] Passed 4 tests

An overview of server-side resources used by YARPP For bbpress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0134.51 ▼1.53
Dashboard /wp-admin3.31 ▲0.0141.34 ▼7.08
Posts /wp-admin/edit.php3.36 ▲0.0141.54 ▼6.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.12 ▼17.29
Media Library /wp-admin/upload.php3.24 ▲0.0132.04 ▼1.04

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

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

Browser metrics Passed 4 tests

Checking browser requirements for YARPP For bbpress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.46 ▼1.001.70 ▼0.3041.95 ▲3.18
Dashboard /wp-admin2,206 ▲154.87 ▼1.02104.74 ▼2.0138.00 ▼1.54
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0337.91 ▼3.3533.38 ▼2.85
Add New Post /wp-admin/post-new.php1,531 ▲323.19 ▲4.73671.14 ▲34.4355.91 ▲2.18
Media Library /wp-admin/upload.php1,385 ▼04.25 ▲0.0399.70 ▼2.4443.44 ▲1.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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 to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === yarpp-for-bbpress === )
The official readme.txt might help

yarpp-for-bbpress/yarpp-for-bbpress.php Passed 13 tests

This is the main PHP file of "YARPP For bbpress" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Enable bbpress forum, post and replies in YARPP results

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2122118

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin