78% persian-bbpress-tools

Code Review | Persian bbPress Tools

WordPress plugin Persian bbPress Tools scored78%from 54 tests.

About plugin

  • Plugin page: persian-bbpress-t...
  • Plugin version: 0.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4
  • WordPress version: 6.3.1
  • First release: Apr 9, 2013
  • Latest release: Mar 3, 2016
  • Number of updates: 29
  • Update frequency: every 36.5 days
  • Top authors: genzographics (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /4,965 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.31ms] Passed 4 tests

Analyzing server-side resources used by Persian bbPress Tools
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.19 ▼0.33
Dashboard /wp-admin3.35 ▲0.0147.78 ▼15.84
Posts /wp-admin/edit.php3.40 ▲0.0548.51 ▼1.65
Add New Post /wp-admin/post-new.php5.93 ▲0.0588.12 ▼11.40
Media Library /wp-admin/upload.php3.28 ▲0.0537.28 ▲1.81
بی‌بی‌پرس فارسی /wp-admin/options-general.php?page=persian-bbpress-tools/persian-bbpress-tools.php3.2233.37

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
pbbp_tools_options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Persian bbPress Tools
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲10813.83 ▼0.128.80 ▲6.8239.17 ▼3.22
Dashboard /wp-admin2,202 ▲255.55 ▲0.0184.30 ▼3.4645.90 ▲2.85
Posts /wp-admin/edit.php2,101 ▲11.99 ▲0.0237.25 ▼2.5642.43 ▲9.53
Add New Post /wp-admin/post-new.php1,544 ▲1823.09 ▼0.43671.94 ▼46.3963.93 ▲8.02
Media Library /wp-admin/upload.php1,404 ▲44.11 ▼0.17110.75 ▲6.2153.66 ▲6.34
بی‌بی‌پرس فارسی /wp-admin/options-general.php?page=persian-bbpress-tools/persian-bbpress-tools.php8542.0126.8171.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • pbbp_tools_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=persian-bbpress-tools/persian-bbpress-tools.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=persian-bbpress-tools/persian-bbpress-tools.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=persian-bbpress-tools/persian-bbpress-tools.php
    • > Notice in wp-content/plugins/persian-bbpress-tools/persian-bbpress-tools.php+180
    Undefined index: login_uri_string
    • > GET request to /wp-admin/options-general.php?page=persian-bbpress-tools/persian-bbpress-tools.php
    • > Notice in wp-content/plugins/persian-bbpress-tools/persian-bbpress-tools.php+186
    Undefined index: register_uri_string
    • > GET request to /wp-admin/options-general.php?page=persian-bbpress-tools/persian-bbpress-tools.php
    • > Notice in wp-content/plugins/persian-bbpress-tools/persian-bbpress-tools.php+192
    Undefined index: lostpass_uri_string

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/persian-bbpress-tools/persian-bbpress-tools.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Screenshots: These screenshots do not have images: #1 ([Persian bbPress Tools Options Page](http://plugins.svn.wordpress.org/persian-bbpress-tools/assets/pbbp-screenshot-1.png)), #2 ([Persian bbPress Tools Front End](http://plugins.svn.wordpress.org/persian-bbpress-tools/assets/pbbp-screenshot-2.png))
  • Donate link: Please fix this invalid url: ""
The official readme.txt might help

persian-bbpress-tools/persian-bbpress-tools.php 92% from 13 tests

"Persian bbPress Tools" version 0.6.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,602 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PO File11,0071,2522,562
CSS114145808
PHP15636169
JavaScript120063

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions19
▷ Named functions19100.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