84% authors-as-taxonomy

Code Review | Authors as Taxonomy

WordPress plugin Authors as Taxonomy scored 84% from 54 tests.

About plugin

  • Plugin page: authors-as-taxonomy
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9
  • WordPress version: 5.9.2
  • First release: Dec 16, 2017
  • Latest release: Dec 16, 2017
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: mark-k (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼0.11MB] [CPU: ▼298.89ms] Passed 4 tests

This is a short check of server-side resources used by Authors as Taxonomy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.1655.93 ▲7.82
Dashboard /wp-admin3.52 ▲0.1133.41 ▼0.25
Posts /wp-admin/edit.php3.75 ▲0.1139.28 ▲4.06
Add New Post /wp-admin/post-new.php6.19 ▼0.7880.13 ▼1,199.15
Media Library /wp-admin/upload.php3.39 ▲0.1023.70 ▼0.23

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options
calmpress\internal\authors_as_taxonomy

Browser metrics Passed 4 tests

Authors as Taxonomy: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,778 ▲5615.89 ▲0.265.66 ▼0.402.18 ▼0.09
Dashboard /wp-admin2,907 ▲466.07 ▼0.20115.51 ▼16.54154.38 ▼8.31
Posts /wp-admin/edit.php2,750 ▲593.24 ▼0.0163.42 ▼1.60141.70 ▼2.32
Add New Post /wp-admin/post-new.php1,872 ▲21223.97 ▲7.13377.90 ▼23.09174.70 ▲19.15
Media Library /wp-admin/upload.php1,713 ▲155.45 ▼0.02135.55 ▼6.13179.90 ▼5.48

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • calmpress\internal\authors_as_taxonomy

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/authors-as-taxonomy/integration/authors-as-taxonomy/feed-atom.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function calmpress\\plugins\\authors_as_taxonomy\\load_plugin_textdomain() in wp-content/plugins/authors-as-taxonomy/authors-as-taxonomy.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function calmpress\\internal\\authors_as_taxonomy\\add_action() in wp-content/plugins/authors-as-taxonomy/internal/authors-as-taxonomy/functions.php:138
    • > PHP Fatal error
      Uncaught Error: Interface 'calmpress\\api\\authors_as_taxonomy\\iterator' not found in wp-content/plugins/authors-as-taxonomy/api/authors-as-taxonomy/class-authors-collection.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function feed_content_type() in wp-content/plugins/authors-as-taxonomy/integration/authors-as-taxonomy/feed-rss2.php:29

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
4 plugin tags: multiple authors, authors, calmpress, security

authors-as-taxonomy/authors-as-taxonomy.php 92% from 13 tests

"Authors as Taxonomy" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected508 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9141559508

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.50
▷ Minimum class complexity2.00
▷ Maximum class complexity3.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin