78% bbpress-simple-view-counts

Code Review | bbPress Simple View Counts

WordPress plugin bbPress Simple View Counts scored78%from 54 tests.

About plugin

  • Plugin page: bbpress-simple-vi...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.1
  • WordPress version: 6.3.1
  • First release: Aug 30, 2013
  • Latest release: Jan 20, 2016
  • Number of updates: 12
  • Update frequency: every 74.3 days
  • Top authors: jezza101 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /5,624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.22ms] Passed 4 tests

Server-side resources used by bbPress Simple View Counts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.96 ▼1.31
Dashboard /wp-admin3.35 ▲0.0144.55 ▼19.75
Posts /wp-admin/edit.php3.40 ▲0.0548.58 ▼0.48
Add New Post /wp-admin/post-new.php5.93 ▲0.0482.41 ▼13.95
Media Library /wp-admin/upload.php3.27 ▲0.0537.07 ▼1.88
View Count Options /wp-admin/edit.php?post_type=forum&page=bbPress_simple_view_count3.0424.06

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: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
SVC-options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

bbPress Simple View Counts: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.22 ▼1.191.71 ▼0.1945.81 ▼1.16
Dashboard /wp-admin2,206 ▲244.84 ▼1.06107.45 ▲4.3941.31 ▼0.22
Posts /wp-admin/edit.php2,089 ▼02.00 ▲0.0139.88 ▲4.8134.98 ▲1.84
Add New Post /wp-admin/post-new.php1,542 ▲918.15 ▼5.03627.08 ▼53.3046.94 ▼11.21
Media Library /wp-admin/upload.php1,382 ▼04.21 ▼0.03110.00 ▼0.8547.38 ▲1.13
View Count Options /wp-admin/edit.php?post_type=forum&page=bbPress_simple_view_count280.440.113.36

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • SVC-options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/bbpress-simple-view-counts/bbpress-simple-view-counts.php:34

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=forum&page=bbPress_simple_view_count
    • > Network (severe)
    wp-admin/edit.php?post_type=forum&page=bbPress_simple_view_count - Failed to load resource: the server responded with a status of 403 (Forbidden)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention: The official readme.txt is a good inspiration

bbpress-simple-view-counts/bbpress-simple-view-counts.php Passed 13 tests

This is the main PHP file of "bbPress Simple View Counts" version 0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Counts and shows views in bbPress 2 forum

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin165 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP29758165

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity10.00
▷ Minimum class complexity4.00
▷ Maximum class complexity16.00
Average method complexity2.29
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin