10% add-authors-not-users

Code Review | Add Authors Not Users

WordPress plugin Add Authors Not Users scored10%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: 6.3.1
  • 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 /1,193 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > 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(310): aanu_activate_add_authors_not_users()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

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

This is a short check of server-side resources used by Add Authors Not Users
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.21 ▼9.52
Dashboard /wp-admin3.31 ▼0.0448.06 ▼18.71
Posts /wp-admin/edit.php3.36 ▲0.0049.46 ▼0.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0096.71 ▲2.00
Media Library /wp-admin/upload.php3.23 ▲0.0039.45 ▲2.44

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Add Authors Not Users: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.24 ▼0.111.58 ▼0.5142.02 ▲0.88
Dashboard /wp-admin2,195 ▲245.62 ▲0.0594.12 ▲0.5141.95 ▲1.92
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0739.00 ▲4.5136.64 ▲0.57
Add New Post /wp-admin/post-new.php1,526 ▼023.33 ▲0.27594.53 ▼112.8050.45 ▼11.31
Media Library /wp-admin/upload.php1,394 ▼94.19 ▼0.0396.94 ▼6.3541.53 ▼2.80

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/add-authors-not-users/public/partials/add-authors-not-users-public-display.php
  • 1× PHP files trigger server errors 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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: comments, spam

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

This is the main PHP file of "Add Authors Not Users" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin216 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP12152412210
CSS1203
JavaScript1203

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were 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
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin