84% authors-by-latest-post

Code Review | Authors By Latest Post

WordPress plugin Authors By Latest Post scored84%from 54 tests.

About plugin

  • Plugin page: authors-by-latest...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 3, 2018
  • Latest release: Sep 3, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: mayukojpn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /625 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.69ms] Passed 4 tests

This is a short check of server-side resources used by Authors By Latest Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.73 ▲0.52
Dashboard /wp-admin3.35 ▲0.0445.07 ▼6.37
Posts /wp-admin/edit.php3.46 ▲0.1045.16 ▼3.44
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.66 ▼5.46
Media Library /wp-admin/upload.php3.27 ▲0.0434.11 ▲3.53

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Authors By Latest Post
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.42 ▼1.161.91 ▲0.1943.43 ▼0.59
Dashboard /wp-admin2,206 ▲214.85 ▼0.02101.96 ▼5.6839.57 ▼0.46
Posts /wp-admin/edit.php2,086 ▼62.06 ▲0.0537.56 ▼10.7131.55 ▼6.83
Add New Post /wp-admin/post-new.php1,519 ▼923.19 ▲4.78615.95 ▲5.3150.53 ▼0.94
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.0495.97 ▼12.8542.32 ▼1.39

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
Please take a closer look at the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/authors-by-latest-post/classes/class.rest-api.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/authors-by-latest-post/classes/class.update.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/authors-by-latest-post/authors-by-latest-post.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Shortcode example.) image required
You can take inspiration from this readme.txt

authors-by-latest-post/authors-by-latest-post.php Passed 13 tests

The main file in "Authors By Latest Post" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
Display writer list of your blog in order of their last published date and time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected357 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript32328184
PHP33757173

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.33
▷ Minimum class complexity1.00
▷ Maximum class complexity8.00
Average method complexity1.81
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods16100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin