10% point-blank-super-recent-posts

Code Review | Point Blank Super Recent Posts Widget

WordPress plugin Point Blank Super Recent Posts Widget scored10%from 54 tests.

About plugin

  • Plugin page: point-blank-super...
  • Plugin version: v1.0...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Oct 25, 2012
  • Latest release: Jun 12, 2013
  • Number of updates: 3
  • Update frequency: every 76.7 days
  • Top authors: pointblankire (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,331 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/point-blank-super-recent-posts/pointblank-super-recent-posts.php+214
    syntax error, unexpected end of file

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

Analyzing server-side resources used by Point Blank Super Recent Posts Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.78 ▼10.90
Dashboard /wp-admin3.31 ▲0.0046.83 ▲1.73
Posts /wp-admin/edit.php3.36 ▲0.0049.60 ▼15.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.77 ▼11.82
Media Library /wp-admin/upload.php3.23 ▲0.0035.56 ▲1.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Point Blank Super Recent Posts Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.091.61 ▼0.1642.41 ▲1.57
Dashboard /wp-admin2,200 ▲155.83 ▼0.0398.49 ▼3.8039.38 ▼0.48
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0440.40 ▲1.9236.89 ▲3.46
Add New Post /wp-admin/post-new.php1,533 ▲1923.11 ▲5.52604.74 ▼56.6556.46 ▼7.14
Media Library /wp-admin/upload.php1,391 ▼04.21 ▼0.1399.06 ▼2.2841.47 ▼0.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 | 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 Parse error
      syntax error, unexpected end of file in wp-content/plugins/point-blank-super-recent-posts/pointblank-super-recent-posts.php on line 214

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 86% 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
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === point-blank-super-recent-posts === )
You can look at the official readme.txt

point-blank-super-recent-posts/pointblank-super-recent-posts.php 77% from 13 tests

Analyzing the main PHP file in "Point Blank Super Recent Posts Widget" version v1.0...
It is important to fix the following:
  • Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "v1.0...")
  • Description: Keep the plugin description shorter than 140 characters (currently 165 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("point-blank-super-recent-posts.php" instead of "pointblank-super-recent-posts.php")

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
Success! There were no dangerous files found in this plugin87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1755287

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected