84% blog-authors

Code Review | Blog Authors

WordPress plugin Blog Authors scored84%from 54 tests.

About plugin

  • Plugin page: blog-authors
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.1
  • WordPress version: 6.3.1
  • First release: Dec 25, 2014
  • Latest release: Jan 27, 2015
  • Number of updates: 16
  • Update frequency: every 2.1 days
  • Top authors: andreyonadam (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,470 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.28MB] [CPU: ▼2.63ms] Passed 4 tests

Server-side resources used by Blog Authors
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2446.69 ▲4.87
Dashboard /wp-admin3.60 ▲0.2953.70 ▼0.60
Posts /wp-admin/edit.php3.71 ▲0.3547.72 ▼1.65
Add New Post /wp-admin/post-new.php6.18 ▲0.2986.19 ▼9.40
Media Library /wp-admin/upload.php3.52 ▲0.2938.39 ▲1.13
Blog Authors /wp-admin/admin.php?page=blog-authors3.4933.49
Embed Settings /wp-admin/admin.php?page=blog-authors-embed-code3.4935.17
Authors Page /wp-admin/admin.php?page=blog-authors-manage3.5037.89
Author Card /wp-admin/admin.php?page=blog-authors-author-card3.5041.57

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Blog Authors
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.37 ▲0.021.70 ▼0.3143.98 ▼0.33
Dashboard /wp-admin2,236 ▲625.63 ▼0.0284.68 ▼17.7739.39 ▼5.02
Posts /wp-admin/edit.php2,138 ▲382.01 ▲0.0736.26 ▲1.1036.42 ▼1.66
Add New Post /wp-admin/post-new.php1,557 ▲3123.21 ▲0.15684.41 ▼5.9853.16 ▼1.53
Media Library /wp-admin/upload.php1,441 ▲414.16 ▲0.0295.73 ▼20.7144.52 ▼2.32
Blog Authors /wp-admin/admin.php?page=blog-authors9162.0025.5137.18
Embed Settings /wp-admin/admin.php?page=blog-authors-embed-code8532.0025.0531.75
Authors Page /wp-admin/admin.php?page=blog-authors-manage1,4472.9354.2933.54
Author Card /wp-admin/admin.php?page=blog-authors-author-card1,6112.9757.2731.64

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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 take a closer look at the following
  • 7× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/blog-authors/includes/shortcodehandler.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-authors/includes/authorcards.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-authors/includes/adminpage.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-authors/includes/adminpage.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-authors/includes/embedsettings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/blog-authors/includes/cardhandler.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-authors/includes/functions.php:2

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: team page, authors, profile, blog, embed...

blog-authors/blogauthors.php 92% from 13 tests

The main PHP script in "Blog Authors" version 1.5 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("blog-authors.php" instead of "blogauthors.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,461 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP822431,699
CSS2691491
JavaScript56364271

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
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%
Functions73
▷ Named functions73100.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
16 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/images/hexagon.png14.92KB4.48KB▼ 69.99%
includes/images/squares.png3.61KB2.12KB▼ 41.38%
includes/images/rows.png4.34KB3.27KB▼ 24.68%
includes/images/64circle.png1.84KB0.73KB▼ 60.33%
includes/images/squares-retina.png7.21KB3.09KB▼ 57.14%