79% author-category

Code Review | Author Category

WordPress plugin Author Category scored79%from 54 tests.

About plugin

  • Plugin page: author-category
  • Plugin version: 0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.0
  • WordPress version: 6.3.1
  • First release: Mar 5, 2012
  • Latest release: Dec 11, 2016
  • Number of updates: 19
  • Update frequency: every 101.3 days
  • Top authors: bainternet (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

5,000+ active /29,971 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.20MB] [CPU: ▼16.30ms] Passed 4 tests

Analyzing server-side resources used by Author Category
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.77 ▲1.37
Dashboard /wp-admin3.46 ▲0.1259.07 ▼3.72
Posts /wp-admin/edit.php3.35 ▼0.0037.03 ▼11.78
Add New Post /wp-admin/post-new.php4.93 ▼0.9555.77 ▼51.05
Media Library /wp-admin/upload.php3.39 ▲0.1642.59 ▲6.42
Author category /wp-admin/users.php?page=Author_category_panel3.4134.35

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Author Category: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.37 ▼0.221.81 ▲0.1240.88 ▼2.46
Dashboard /wp-admin2,199 ▲225.67 ▼0.0087.33 ▼2.2039.39 ▼9.28
Posts /wp-admin/edit.php2,104 ▲42.02 ▼0.0534.57 ▼8.3734.70 ▲2.04
Add New Post /wp-admin/post-new.php1,548 ▼223.36 ▲5.09601.49 ▼83.8853.33 ▼2.48
Media Library /wp-admin/upload.php1,398 ▼24.21 ▲0.01103.23 ▼4.0046.77 ▲4.93
Author category /wp-admin/users.php?page=Author_category_panel1,1312.3947.5861.79

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/users.php?page=Author_category_panel
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/users.php?page=Author_category_panel
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/author-category/author-category.php
    • > /wp-content/plugins/author-category/inc/author_category_Panel_class.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: author category, author posts to category, limit author to category

author-category/author-category.php Passed 13 tests

This is the main PHP file of "Author Category" version 0.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
simple plugin limit authors to post just in one category.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin796 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3103610710
PO File1263386

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity29.33
▷ Minimum class complexity9.00
▷ Maximum class complexity50.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods50
▷ Static methods00.00%
▷ Public methods50100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin