89% bp-limit-activity-length

Code Review | BP Limit Activity Length

WordPress plugin BP Limit Activity Length scored89%from 54 tests.

About plugin

  • Plugin page: bp-limit-activity...
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 7, 2013
  • Latest release: Jul 15, 2013
  • Number of updates: 9
  • Update frequency: every 11.7 days
  • Top authors: Mike_Cowobo (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /2,663 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.79ms] Passed 4 tests

A check of server-side resources used by BP Limit Activity Length
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.27 ▲0.48
Dashboard /wp-admin3.33 ▲0.0354.82 ▲6.85
Posts /wp-admin/edit.php3.39 ▲0.0250.56 ▲3.16
Add New Post /wp-admin/post-new.php5.92 ▲0.0286.82 ▼14.13
Media Library /wp-admin/upload.php3.26 ▲0.0240.15 ▼0.66

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for BP Limit Activity Length
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.23 ▲0.301.83 ▼0.3341.98 ▼3.94
Dashboard /wp-admin2,195 ▲245.59 ▲0.0589.01 ▼13.7743.16 ▼7.82
Posts /wp-admin/edit.php2,103 ▲32.00 ▲0.0336.39 ▲0.6938.37 ▼6.88
Add New Post /wp-admin/post-new.php1,526 ▼023.11 ▲0.14677.83 ▲1.0857.29 ▲3.43
Media Library /wp-admin/upload.php1,403 ▼04.16 ▼0.0496.89 ▼1.6744.33 ▲1.71

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: A description for screenshot #2 is missing in bp-limit-activity-length/assets to your readme.txt
  • Tested up to: Version not formatted correctly
  • Requires at least: Version not formatted correctly
Please take inspiration from this readme.txt

bp-limit-activity-length/bp-limit-activity-length.php Passed 13 tests

"BP Limit Activity Length" version 0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Limit the maximum length of activities like Twitter

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected250 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP13047107
PO File3131278
JavaScript115165

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods110.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected