62% personal-authors-category

Code Review | personal-authors-category

WordPress plugin personal-authors-category scored62%from 54 tests.

About plugin

  • Plugin page: personal-authors-...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5+
  • WordPress version: 6.3.1
  • First release: Oct 19, 2013
  • Latest release: Feb 10, 2015
  • Number of updates: 8
  • Update frequency: every 60.0 days
  • Top authors: AlexeyKnyazev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,057 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.96MB] [CPU: ▼34.93ms] Passed 4 tests

This is a short check of server-side resources used by personal-authors-category
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.43 ▲4.45
Dashboard /wp-admin3.00 ▼0.3526.57 ▼34.61
Posts /wp-admin/edit.php3.00 ▼0.3626.06 ▼20.36
Add New Post /wp-admin/post-new.php3.00 ▼2.8922.60 ▼73.72
Media Library /wp-admin/upload.php3.00 ▼0.2325.33 ▼11.02
personal authors category /wp-admin/edit.php?page=catreg3.0021.32

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
personal_authors_category_format
can_compress_scripts
personal_authors_category_catname
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for personal-authors-category
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.301.87 ▲0.0943.61 ▲1.28
Dashboard /wp-admin2,199 ▲185.59 ▼0.1394.96 ▼3.6741.06 ▲0.18
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0335.36 ▲1.2532.52 ▼4.14
Add New Post /wp-admin/post-new.php1,534 ▼323.53 ▲5.34668.39 ▲4.2052.63 ▼13.41
Media Library /wp-admin/upload.php1,404 ▲14.18 ▼0.0293.74 ▼3.3145.17 ▲4.08
personal authors category /wp-admin/edit.php?page=catreg8982.1924.6926.82

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 8 options
    • personal_authors_category_catname
    • personal_authors_category_format
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?page=catreg
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/edit.php?page=catreg
    • > Notice in wp-content/plugins/personal-authors-category/personal-authors-category.php+117
    Undefined index: up
    • > GET request to /wp-admin/edit.php?page=catreg
    • > Notice in wp-content/plugins/personal-authors-category/personal-authors-category.php+215
    unserialize(): Error at offset 0 of 1 bytes
    • > GET request to /wp-admin/edit.php?page=catreg
    • > Warning in wp-content/plugins/personal-authors-category/personal-authors-category.php+215
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/edit.php?page=catreg
    • > Notice in wp-content/plugins/personal-authors-category/personal-authors-category.php+226
    Undefined variable: selec

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/personal-authors-category/personal-authors-category.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?page=catreg
    • > Network (severe)
    http://webdesignseo.ru/wp-content/plugins/personal-authors-category/images/blue.gif - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/edit.php?page=catreg
    • > Network (severe)
    https://www.paypalobjects.com/ru_RU/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Plugin settings.) image required
  • Tested up to: Version format is invalid
You can look at the official readme.txt

personal-authors-category/personal-authors-category.php 92% from 13 tests

The entry point to "personal-authors-category" version 0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin416 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP12419268
PO File24050148

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png142.92KB48.43KB▼ 66.11%