84% authpro

Code Review | AuthPro

WordPress plugin AuthPro scored84%from 54 tests.

About plugin

  • Plugin page: authpro
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 3, 2015
  • Latest release: Nov 23, 2022
  • Number of updates: 20
  • Update frequency: every 130.4 days
  • Top authors: yuryk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,694 total downloads


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

Server-side resources used by AuthPro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0548.82 ▲7.60
Dashboard /wp-admin3.35 ▲0.0149.03 ▼14.65
Posts /wp-admin/edit.php3.40 ▲0.0555.81 ▲4.07
Add New Post /wp-admin/post-new.php5.94 ▲0.0590.17 ▼15.64
Media Library /wp-admin/upload.php3.28 ▲0.0538.01 ▲1.58
AuthPro /wp-admin/options-general.php?page=authpro3.2536.31

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

AuthPro: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7314.48 ▲0.181.77 ▼0.3144.31 ▲1.45
Dashboard /wp-admin2,228 ▲254.88 ▼0.03104.57 ▲2.1940.64 ▼3.55
Posts /wp-admin/edit.php2,104 ▲72.01 ▼0.0435.25 ▼2.0731.44 ▼5.80
Add New Post /wp-admin/post-new.php6,224 ▲4,69818.95 ▲1.43946.41 ▲255.2657.17 ▲5.52
Media Library /wp-admin/upload.php1,404 ▲74.39 ▲0.16105.25 ▼12.4546.77 ▼3.01
AuthPro /wp-admin/options-general.php?page=authpro8932.0527.3026.83

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/authpro/authpro.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can look at the official readme.txt

authpro/authpro.php 92% from 13 tests

The principal PHP file in "AuthPro" v. 1.3.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 196 characters long)

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
No dangerous file extensions were detected213 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG images were found in this plugin