84% wp-blame

Code Review | WP Blame

WordPress plugin WP Blame scored84%from 54 tests.

About plugin

  • Plugin page: wp-blame
  • Plugin version: 2.1.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jun 16, 2017
  • Latest release: May 2, 2018
  • Number of updates: 35
  • Update frequency: every 9.2 days
  • Top authors: danieltj (88.57%)jfcby (14.29%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,090 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 gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.26ms] Passed 4 tests

Analyzing server-side resources used by WP Blame
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0539.74 ▲0.41
Dashboard /wp-admin3.35 ▲0.0548.45 ▼8.79
Posts /wp-admin/edit.php3.40 ▲0.0550.10 ▲6.49
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.19 ▼15.03
Media Library /wp-admin/upload.php3.27 ▲0.0536.35 ▲2.38
Logs /wp-admin/tools.php?page=wpb_logs3.3933.97

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: 1 new table, 8 new options
New tables
wp_logs
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
wpb_user_whitelist
widget_recent-posts
wpb_logs_per_page

Browser metrics Passed 4 tests

Checking browser requirements for WP Blame
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.27 ▼0.301.64 ▼0.2538.74 ▼5.14
Dashboard /wp-admin2,202 ▲225.58 ▼0.1088.75 ▲0.7540.22 ▼3.36
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0539.56 ▼0.2233.60 ▼0.31
Add New Post /wp-admin/post-new.php1,538 ▲918.53 ▼4.68650.81 ▲3.0266.52 ▲14.24
Media Library /wp-admin/upload.php1,407 ▲134.22 ▼0.0496.93 ▼3.7945.06 ▼0.25
Logs /wp-admin/tools.php?page=wpb_logs9912.0126.9431.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/tools.php?page=wpb_logs
    • > Warning in wp-content/plugins/wp-blame/class-log-list.php+371
    Division by zero

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: history, audit, logs, security

wp-blame/wp-blame.php Passed 13 tests

"WP Blame" version 2.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
Keep a record of the activity on your website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin739 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3356449596
Markdown2900143

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity26.67
▷ Minimum class complexity8.00
▷ Maximum class complexity47.00
Average method complexity2.83
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods42
▷ Static methods2457.14%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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