90% wp-user-vandalism-protection

Code Review | WP User Vandalism Protection

WordPress plugin WP User Vandalism Protection scored90%from 54 tests.

About plugin

  • Plugin page: wp-user-vandalism...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9.1
  • WordPress version: 6.3.1
  • First release: Jun 12, 2014
  • Latest release: Jun 12, 2014
  • Number of updates: 14
  • Update frequency: N/A
  • Top authors: kuantero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,000 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by WP User Vandalism Protection
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.91 ▼2.10
Dashboard /wp-admin3.31 ▲0.0146.45 ▼3.24
Posts /wp-admin/edit.php3.36 ▲0.0146.26 ▲1.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.33 ▲7.64
Media Library /wp-admin/upload.php3.23 ▲0.0136.31 ▼0.78

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP User Vandalism Protection
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲6113.17 ▼1.511.69 ▼0.0144.29 ▼7.36
Dashboard /wp-admin2,202 ▲175.88 ▲0.03106.03 ▼12.6445.55 ▼3.01
Posts /wp-admin/edit.php2,085 ▼41.97 ▼0.0339.03 ▲2.5234.46 ▲1.48
Add New Post /wp-admin/post-new.php1,511 ▼317.65 ▲0.15583.34 ▼107.3852.17 ▼0.21
Media Library /wp-admin/upload.php1,384 ▼14.17 ▼0.1694.54 ▼15.5941.18 ▼0.84

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 25 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-user-vandalism-protection/wp-user-vandalism-protection.php Passed 13 tests

The primary PHP file in "WP User Vandalism Protection" version 1.2 is used by WordPress to initiate all plugin functionality
139 characters long description:
Remove "Profile" tab from admin bar and side menu, where users can edit their profile and kill profile page if user isn't an administrator.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191134

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin