84% tekserve-single-post-shortcode

Code Review | Tekserve Single Post Shortcode

WordPress plugin Tekserve Single Post Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: tekserve-single-p...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 8, 2013
  • Latest release: Nov 10, 2013
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: bangerkuwranger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,209 total downloads


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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.88ms] Passed 4 tests

Analyzing server-side resources used by Tekserve Single Post Shortcode
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.69 ▲3.35
Dashboard /wp-admin3.34 ▼0.0143.70 ▼13.60
Posts /wp-admin/edit.php3.39 ▲0.0344.49 ▼0.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.76 ▼20.90
Media Library /wp-admin/upload.php3.26 ▲0.0337.02 ▲3.68

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Tekserve Single Post Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.121.65 ▲0.0244.06 ▲4.03
Dashboard /wp-admin2,203 ▲155.81 ▼0.0098.72 ▼7.5140.52 ▼0.63
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0237.75 ▲1.9934.94 ▼0.27
Add New Post /wp-admin/post-new.php1,528 ▲1418.53 ▼5.09600.58 ▼99.9867.29 ▲7.42
Media Library /wp-admin/upload.php1,385 ▼64.18 ▼0.0196.89 ▼10.1342.05 ▼3.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_tekserve_single_post_widget
    • widget_recent-comments

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
Everything seems fine, however this is by no means 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/tekserve-single-post-shortcode/tekserve-single-post-shortcode.php:60

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 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
8 plugin tags: link, shortcode, single post, content, preview...

tekserve-single-post-shortcode/tekserve-single-post-shortcode.php Passed 13 tests

The main PHP script in "Tekserve Single Post Shortcode" version 1.3 is automatically included on every request by WordPress
114 characters long description:
Wordpress plugin to create a shortcode for showing the title, post info, excerpt, and thumbnail for a single post.

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 plugin192 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions150.00%
▷ Anonymous functions150.00%
▷ 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