10% add-authors-not-users

Code Review | Add Authors Not Users

WordPress plugin Add Authors Not Users scored 10% from 54 tests.

About plugin

  • Plugin page: add-authors-not-u...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.9.2
  • First release: Dec 15, 2017
  • Latest release: Dec 15, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: heyyonatan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 940 total downloads


Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Error in wp-content/plugins/add-authors-not-users/add-authors-not-users.php+38
    Uncaught Error: Call to undefined method Aanu_Add_Authors_Not_Users_Activator::activate() in wp-content/plugins/add-authors-not-users/add-authors-not-users.php:38
    Stack trace:
    #0 wp-includes/class-wp-hook.php(307): aanu_activate_add_authors_not_users()
    #1 wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(474): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(689): do_action()

Server metrics [RAM: ▼0.02MB] [CPU: ▼294.51ms] Passed 4 tests

A check of server-side resources used by Add Authors Not Users
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.24 ▲7.03
Dashboard /wp-admin3.41 ▲0.0035.55 ▲2.97
Posts /wp-admin/edit.php3.64 ▲0.0035.64 ▼0.09
Add New Post /wp-admin/post-new.php6.89 ▼0.0895.65 ▼1,177.92
Media Library /wp-admin/upload.php3.29 ▼0.0123.19 ▼2.99

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Add Authors Not Users: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲1915.94 ▲0.706.90 ▲0.812.42 ▲0.15
Dashboard /wp-admin2,888 ▲346.17 ▲0.06115.92 ▼14.65155.13 ▼6.05
Posts /wp-admin/edit.php2,694 ▼03.23 ▼0.0064.93 ▼1.06141.76 ▲1.02
Add New Post /wp-admin/post-new.php1,661 ▼015.92 ▼0.09442.18 ▲27.82154.53 ▲2.75
Media Library /wp-admin/upload.php1,701 ▲65.53 ▲0.01140.53 ▼7.97185.06 ▼7.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/add-authors-not-users/public/partials/add-authors-not-users-public-display.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_custom() in wp-content/plugins/add-authors-not-users/admin/partials/add-authors-not-users-admin-display.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: spam, comments

add-authors-not-users/add-authors-not-users.php Passed 13 tests

The entry point to "Add Authors Not Users" version 1.0.0 is a PHP file that has certain tags in its header comment area
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin216 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.71
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
No PNG files were detected