89% defaults-for-buddypress-docs

Code Review | Defaults for BuddyPress Docs

WordPress plugin Defaults for BuddyPress Docs scored89%from 54 tests.

About plugin

  • Plugin page: defaults-for-budd...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.2
  • WordPress version: 6.3.1
  • First release: Feb 4, 2018
  • Latest release: Feb 4, 2018
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: Venutius (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,294 total downloads

Benchmarks

Plugin footprint 83% from 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.05MB] [CPU: ▼5.70ms] Passed 4 tests

This is a short check of server-side resources used by Defaults for BuddyPress Docs
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.35 ▼0.00
Dashboard /wp-admin3.35 ▲0.0552.66 ▲1.27
Posts /wp-admin/edit.php3.47 ▲0.1151.95 ▼0.20
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.49 ▼23.13
Media Library /wp-admin/upload.php3.28 ▲0.0540.66 ▲0.55

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Defaults for BuddyPress Docs
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.401.64 ▼0.0945.16 ▲4.84
Dashboard /wp-admin2,195 ▲155.58 ▼0.1882.41 ▼15.0341.44 ▲0.92
Posts /wp-admin/edit.php2,100 ▲31.96 ▼0.0434.29 ▼4.8337.27 ▼2.09
Add New Post /wp-admin/post-new.php1,528 ▲222.94 ▲0.10693.95 ▲37.5957.84 ▲7.15
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.04100.20 ▼1.1743.15 ▼7.21

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Donate link: Invalid URI ("paypal.me/GeorgeChaplin")
You can take inspiration from this readme.txt

defaults-for-buddypress-docs/defaults-for-buddypress-docs.php 92% from 13 tests

The primary PHP file in "Defaults for BuddyPress Docs" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 209 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin236 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP43848172
PO File1171864

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity6.50
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin