94% ab-wp-security

Code Review | AB WP Security

WordPress plugin AB WP Security scored 94% from 54 tests.

About plugin

  • Plugin page: ab-wp-security
  • Plugin version: 1.51
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.8
  • WordPress version: 5.9.2
  • First release: Apr 26, 2017
  • Latest release: Jun 18, 2017
  • Number of updates: 14
  • Update frequency: every 3.8 days
  • Top authors: abjelosevic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,354 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by AB WP Security
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0155.76 ▲6.74
Dashboard /wp-admin3.42 ▲0.0133.29 ▲0.84
Posts /wp-admin/edit.php3.65 ▲0.0137.22 ▲0.62
Add New Post /wp-admin/post-new.php6.89 ▼0.0897.34 ▼1,171.02
Media Library /wp-admin/upload.php3.30 ▲0.0123.81 ▼0.55
AB WP Security /wp-admin/options-general.php?page=abwps3.2723.60

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by AB WP Security
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,800 ▲4616.26 ▲0.296.14 ▼0.202.18 ▼0.34
Dashboard /wp-admin2,897 ▲366.08 ▼0.08115.57 ▼16.10150.82 ▼9.78
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0261.47 ▲2.24138.30 ▼5.48
Add New Post /wp-admin/post-new.php1,671 ▼4618.17 ▼3.66406.48 ▼25.27155.16 ▼2.52
Media Library /wp-admin/upload.php1,703 ▲55.50 ▼0.05142.79 ▲0.22179.70 ▼7.09
AB WP Security /wp-admin/options-general.php?page=abwps1,0532.3752.39125.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ab-wp-security/ab-wp-security-plugin.php:208

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 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
6 plugin tags: remove wordpress version number, enumeration, disable xml-rpc, disable directory browsing, block...

ab-wp-security/ab-wp-security-plugin.php 85% from 13 tests

The entry point to "AB WP Security" version 1.51 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("ab-wp-security.php" instead of "ab-wp-security-plugin.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 179 characters long)

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
Success! There were no dangerous files found in this plugin138 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15421138

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin