84% author-archives

Code Review | Author Archives

WordPress plugin Author Archives scored84%from 54 tests.

About plugin

  • Plugin page: author-archives
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Apr 19, 2017
  • Latest release: Apr 19, 2017
  • Number of updates: 5
  • Update frequency: every 26.2 days
  • Top authors: shwetuk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

This is a short check of server-side resources used by Author Archives
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.51 ▲8.41
Dashboard /wp-admin3.31 ▼0.0345.04 ▼18.85
Posts /wp-admin/edit.php3.37 ▲0.0146.48 ▼6.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.07 ▼20.27
Media Library /wp-admin/upload.php3.24 ▲0.0137.13 ▲1.65

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_wpb_author_archives
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Author Archives
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.28 ▲0.021.69 ▼0.0940.83 ▼2.33
Dashboard /wp-admin2,195 ▲155.62 ▼0.0387.97 ▼4.3336.22 ▼6.47
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0435.92 ▼3.6934.65 ▲0.05
Add New Post /wp-admin/post-new.php1,526 ▼022.94 ▲0.00592.81 ▼33.1156.86 ▲2.07
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.0699.51 ▼7.1545.70 ▼2.29

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_wpb_author_archives
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/author-archives/author-archives.php:12

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

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: sidebar, monthly, author, wordpress, widget...

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

The primary PHP file in "Author Archives" version 1.0 is used by WordPress to initiate all plugin functionality
70 characters long description:
Displays author specific archives widget on author's single post page.

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
Everything looks great! No dangerous files found in this plugin81 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP192077
CSS1104

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.27
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin