84% bbpress-unread-posts

Code Review | bbPress Unread Posts

WordPress plugin bbPress Unread Posts scored84%from 54 tests.

About plugin

  • Plugin page: bbpress-unread-posts
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 18, 2013
  • Latest release: Jan 18, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: destroflyer (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active /3,820 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by bbPress Unread Posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.66 ▲1.53
Dashboard /wp-admin3.31 ▲0.0150.82 ▼5.29
Posts /wp-admin/edit.php3.36 ▲0.0150.25 ▲4.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.90 ▼12.38
Media Library /wp-admin/upload.php3.24 ▲0.0139.24 ▲2.59

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for bbPress Unread Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.31 ▼0.122.01 ▲0.1341.86 ▲3.09
Dashboard /wp-admin2,197 ▲205.67 ▲0.0684.67 ▼15.7940.15 ▼5.53
Posts /wp-admin/edit.php2,099 ▼12.02 ▲0.0034.28 ▼4.6737.25 ▲3.26
Add New Post /wp-admin/post-new.php1,528 ▲317.74 ▲0.04631.43 ▼8.2852.34 ▼2.03
Media Library /wp-admin/upload.php1,396 ▼44.32 ▲0.0998.02 ▼1.9843.72 ▼0.28

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bbpress-unread-posts/plugin.php:9

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 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: The plugin version is formatted incorrectly
The official readme.txt is a good inspiration

bbpress-unread-posts/plugin.php 92% from 13 tests

"bbPress Unread Posts" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("bbpress-unread-posts.php" instead of "plugin.php")

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
Good job! No executable or dangerous file extensions detected104 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP112687
CSS13017

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions11
▷ Named functions11100.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
No PNG images were found in this plugin