84% by-this-author

Code Review | By this Author

WordPress plugin By this Author scored84%from 54 tests.

About plugin

  • Plugin page: by-this-author
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.0
  • WordPress version: 6.3.1
  • First release: Jan 22, 2015
  • Latest release: Dec 9, 2018
  • Number of updates: 23
  • Update frequency: every 61.7 days
  • Top authors: racanu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,158 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼10.87ms] Passed 4 tests

Server-side resources used by By this Author
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1838.99 ▲1.73
Dashboard /wp-admin3.48 ▲0.1343.74 ▼13.63
Posts /wp-admin/edit.php3.59 ▲0.2343.75 ▼5.86
Add New Post /wp-admin/post-new.php6.06 ▲0.1781.45 ▼24.69
Media Library /wp-admin/upload.php3.40 ▲0.1734.93 ▲0.71
People /wp-admin/edit-tags.php?taxonomy=people_index3.3933.81
People /wp-admin/edit-tags.php?taxonomy=people_index&post_type=page3.3934.91

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by By this Author
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲7413.17 ▼1.221.82 ▲0.1543.00 ▲2.91
Dashboard /wp-admin2,229 ▲504.87 ▼0.9897.36 ▼7.9138.91 ▼3.55
Posts /wp-admin/edit.php2,138 ▲462.00 ▲0.0334.26 ▼6.2430.61 ▼5.95
Add New Post /wp-admin/post-new.php1,554 ▲2123.32 ▲0.25652.06 ▲32.4852.39 ▼6.24
Media Library /wp-admin/upload.php1,408 ▲204.22 ▲0.0297.15 ▼10.1542.18 ▼4.70
People /wp-admin/edit-tags.php?taxonomy=people_index1,2512.1326.0628.77
People /wp-admin/edit-tags.php?taxonomy=people_index&post_type=page1,2512.1327.4729.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 5× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/by-this-author/by-this-author-people-lists.php
    • > /wp-content/plugins/by-this-author/by-this-author-people-table.php
    • > /wp-content/plugins/by-this-author/by-this-author-settings.php
    • > /wp-content/plugins/by-this-author/by-this-author.php
    • > /wp-content/plugins/by-this-author/class-virtual-page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: generate, list, overview

by-this-author/by-this-author.php 92% from 13 tests

The main PHP file in "By this Author" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path should use only dashes and lowercase characters ("Optional. Plugin's relative directory path to .mo files. Example: /locale/")

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
There were no executable files found in this plugin902 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5149316752
PO File161134150

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity16.80
▷ Minimum class complexity10.00
▷ Maximum class complexity24.00
Average method complexity2.63
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods3675.00%
▷ Public methods2450.00%
▷ Protected methods00.00%
▷ Private methods2450.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.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