99% bbp-close-old-topics

Code Review | BBP Close Old Topics

WordPress plugin BBP Close Old Topics scored 99% from 54 tests.

About plugin

  • Plugin page: bbp-close-old-topics
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8.2
  • WordPress version: 5.8.1
  • First release: Oct 9, 2017
  • Latest release: Oct 9, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: Iceable (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,005 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼146.04ms] Passed 4 tests

An overview of server-side resources used by BBP Close Old Topics
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.68 ▲20.05
Dashboard /wp-admin3.06 ▲0.0144.84 ▼4.96
Posts /wp-admin/edit.php3.11 ▲0.0144.71 ▼6.16
Add New Post /wp-admin/post-new.php5.42 ▼0.0194.81 ▼570.57
Media Library /wp-admin/upload.php3.00 ▲0.0032.44 ▼2.47

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for BBP Close Old Topics
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲10715.82 ▲0.409.48 ▼2.2146.10 ▼7.05
Dashboard /wp-admin2,967 ▲365.86 ▼0.16145.54 ▼14.68112.85 ▲1.11
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0267.54 ▼3.9293.59 ▼2.62
Add New Post /wp-admin/post-new.php1,683 ▼2,04118.79 ▲3.58385.79 ▼106.69116.71 ▲3.12
Media Library /wp-admin/upload.php1,807 ▼35.06 ▲0.04182.32 ▲25.21123.73 ▼0.34

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Settings in the bbPress Admin settings area.) image missing
You can look at the official readme.txt

bbp-close-old-topics/bbp-close-old-topics.php 85% from 13 tests

The main file in "BBP Close Old Topics" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 221 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected160 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP178181160

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.41KB14.62KB▼ 42.45%