84% latest-posts-by-author-with-content

Code Review | Latest Posts by Author with content

WordPress plugin Latest Posts by Author with content scored84%from 54 tests.

About plugin

  • Plugin page: latest-posts-by-a...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Oct 2, 2012
  • Latest release: Sep 9, 2015
  • Number of updates: 9
  • Update frequency: every 119.3 days
  • Top authors: opensourcetech (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /3,733 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.03ms] Passed 4 tests

Server-side resources used by Latest Posts by Author with content
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.56 ▼3.26
Dashboard /wp-admin3.32 ▲0.0147.54 ▼9.20
Posts /wp-admin/edit.php3.37 ▲0.0148.49 ▼2.97
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.23 ▼16.67
Media Library /wp-admin/upload.php3.24 ▲0.0137.59 ▲1.76

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Latest Posts by Author with content
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.311.64 ▼0.0246.71 ▲4.99
Dashboard /wp-admin2,192 ▲155.55 ▲0.0282.46 ▼18.0238.74 ▼9.37
Posts /wp-admin/edit.php2,097 ▼62.15 ▲0.1334.45 ▼6.7532.94 ▼8.21
Add New Post /wp-admin/post-new.php1,528 ▼022.97 ▼0.13648.57 ▼22.0351.02 ▼4.40
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.0599.32 ▼4.6944.12 ▲1.41

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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_shortcode() in wp-content/plugins/latest-posts-by-author-with-content/latest-posts-by-author.php:91

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: content, authors, posts

latest-posts-by-author-with-content/latest-posts-by-author.php 85% from 13 tests

The main PHP file in "Latest Posts by Author with content" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("latest-posts-by-author-with-content.php" instead of "latest-posts-by-author.php")
  • Description: The description should be shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1224445

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin