84% authors-as-taxonomy

Code Review | Authors as Taxonomy

WordPress plugin Authors as Taxonomy scored84%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: 6.3.1
  • 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 /880 total downloads

Benchmarks

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 gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.64ms] Passed 4 tests

Server-side resources used by Authors as Taxonomy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1039.43 ▼9.62
Dashboard /wp-admin3.41 ▲0.1050.20 ▲1.43
Posts /wp-admin/edit.php3.52 ▲0.1752.93 ▲0.04
Add New Post /wp-admin/post-new.php5.59 ▼0.2976.57 ▼22.41
Media Library /wp-admin/upload.php3.33 ▲0.1039.66 ▲4.92

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
calmpress\internal\authors_as_taxonomy

Browser metrics Passed 4 tests

A check of browser resources used by Authors as Taxonomy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.69 ▼0.951.62 ▼0.3542.06 ▼6.03
Dashboard /wp-admin2,221 ▲335.88 ▲0.0698.41 ▼18.3040.73 ▼4.21
Posts /wp-admin/edit.php2,146 ▲572.02 ▼0.0135.65 ▼0.2932.48 ▼0.52
Add New Post /wp-admin/post-new.php6,257 ▲4,72419.09 ▼3.94904.17 ▲276.1168.26 ▲20.16
Media Library /wp-admin/upload.php1,403 ▲184.21 ▲0.03101.63 ▼4.0540.63 ▼4.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • calmpress\internal\authors_as_taxonomy
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > 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 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\\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)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: calmpress, multiple authors, security, authors

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

The main PHP script in "Authors as Taxonomy" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected508 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9141559508

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin