84% bbp-tweet

Code Review | bbp tweet

WordPress plugin bbp tweet scored84%from 54 tests.

About plugin

  • Plugin page: bbp-tweet
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Aug 26, 2015
  • Latest release: Sep 23, 2015
  • Number of updates: 8
  • Update frequency: every 3.6 days
  • Top authors: jacobwarduk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,153 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.00MB] [CPU: ▼5.95ms] Passed 4 tests

A check of server-side resources used by bbp tweet
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0039.18 ▼3.46
Dashboard /wp-admin3.31 ▲0.0048.38 ▼7.86
Posts /wp-admin/edit.php3.36 ▼0.0050.51 ▼5.02
Add New Post /wp-admin/post-new.php5.89 ▼0.0092.36 ▼7.44
Media Library /wp-admin/upload.php3.23 ▼0.0037.80 ▼0.83

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
bbp_tweet_version
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

bbp tweet: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.74 ▲0.001.67 ▲0.0246.21 ▼0.43
Dashboard /wp-admin2,221 ▲184.86 ▼0.0499.16 ▼30.3937.61 ▼7.21
Posts /wp-admin/edit.php2,100 ▼61.99 ▼0.0737.38 ▼1.6737.55 ▼3.53
Add New Post /wp-admin/post-new.php1,526 ▼617.50 ▼5.53628.55 ▼32.6255.86 ▼21.23
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.02105.90 ▼9.1445.58 ▼0.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • bbp_tweet_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bbp-tweet/bbp-tweet-admin.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/bbp-tweet/bbp-tweet.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% 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:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === bbp-tweet === )
You can take inspiration from this readme.txt

bbp-tweet/bbp-tweet.php Passed 13 tests

The main PHP file in "bbp tweet" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
bbPress plugin to automatically tweet new topics and replies.

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
Success! There were no dangerous files found in this plugin9,246 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS615276,826
JavaScript45782041,566
PHP3219102617
SVG100229
Markdown1208

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods777.78%
▷ Protected methods00.00%
▷ Private methods222.22%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.74MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/twitter_app_001.png67.27KB25.07KB▼ 62.73%
img/twitter_app_005.png100.24KB37.71KB▼ 62.38%
assets/banner-772x250.png220.29KB62.00KB▼ 71.86%
img/twitter_app_002.png63.76KB24.12KB▼ 62.16%
img/twitter_app_004.png110.90KB38.46KB▼ 65.32%