89% buddypress-preklad

Code Review | BuddyPress Překlady

WordPress plugin BuddyPress Překlady scored89%from 54 tests.

About plugin

  • Plugin page: buddypress-preklad
  • Plugin version: 2.4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.3
  • WordPress version: 6.3.1
  • First release: Nov 11, 2012
  • Latest release: Sep 29, 2015
  • Number of updates: 37
  • Update frequency: every 28.5 days
  • Top authors: expres-web (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /4,336 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.76ms] Passed 4 tests

This is a short check of server-side resources used by BuddyPress Překlady
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.55 ▼4.08
Dashboard /wp-admin3.31 ▲0.0143.87 ▼7.46
Posts /wp-admin/edit.php3.36 ▲0.0146.99 ▲1.29
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.21 ▼1.46
Media Library /wp-admin/upload.php3.23 ▲0.0133.25 ▼2.05

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

BuddyPress Překlady: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.41 ▼0.212.27 ▲0.5243.55 ▼5.96
Dashboard /wp-admin2,206 ▲154.84 ▼0.05107.35 ▲3.1440.45 ▲1.54
Posts /wp-admin/edit.php2,089 ▲31.99 ▲0.0039.46 ▲3.8336.44 ▼0.89
Add New Post /wp-admin/post-new.php1,534 ▲1523.32 ▲0.15668.50 ▼17.6456.50 ▲4.35
Media Library /wp-admin/upload.php1,391 ▲34.19 ▼0.0497.57 ▼5.8641.46 ▼2.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: buddypress, etina, peklady, buddypres etina, buddypress etina

buddypress-preklad/buddypress-preklady.php 85% from 13 tests

"BuddyPress Překlady" version 2.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("buddypress-preklad.php" instead of "buddypress-preklady.php")
  • 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 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102914

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions2
▷ Named functions2100.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
There were not PNG files found in your plugin