84% simple-latest-posts-shortcode

Code Review | Simple Latest Posts Shortcode

WordPress plugin Simple Latest Posts Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: simple-latest-pos...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 14, 2015
  • Latest release: Jun 15, 2015
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: mkerstner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,087 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 gracefully, with no errors

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

Server-side resources used by Simple Latest Posts Shortcode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0137.18 ▼3.09
Dashboard /wp-admin3.35 ▲0.0153.12 ▲2.03
Posts /wp-admin/edit.php3.40 ▲0.0150.87 ▲0.19
Add New Post /wp-admin/post-new.php5.93 ▲0.0189.87 ▼19.48
Media Library /wp-admin/upload.php3.27 ▲0.0131.01 ▼3.63

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Latest Posts Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.121.57 ▼0.2838.83 ▼5.01
Dashboard /wp-admin2,206 ▲184.91 ▼1.09102.23 ▼13.8843.43 ▲0.23
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0235.07 ▼0.5935.02 ▼2.53
Add New Post /wp-admin/post-new.php1,514 ▼017.54 ▼0.05638.76 ▼87.7351.17 ▼17.78
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.0294.63 ▼4.3241.45 ▼1.13

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/simple-latest-posts-shortcode/simple-latest-posts-shortcode.php

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: posts, latest, simple, shortcode

simple-latest-posts-shortcode/simple-latest-posts-shortcode.php Passed 13 tests

The main file in "Simple Latest Posts Shortcode" v. 0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
A simple plugin for rendering latest post previews in a list view using shortcode.

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 detected88 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1173388

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
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
PNG images were not found in this plugin