94% c4d-post-show

Code Review | Post Show

WordPress plugin Post Show scored 94% from 53 tests.

About plugin

  • Plugin page: c4d-post-show
  • Plugin version: 2.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.7.5
  • WordPress version: 5.8.1
  • First release: Feb 17, 2017
  • Latest release: Nov 16, 2017
  • Number of updates: 12
  • Update frequency: every 22.7 days
  • Top authors: coffee4dev (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 882 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼261.57ms] Passed 4 tests

An overview of server-side resources used by Post Show
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1425.58 ▲4.10
Dashboard /wp-admin3.08 ▲0.0242.91 ▼0.05
Posts /wp-admin/edit.php3.13 ▲0.0246.72 ▲2.83
Add New Post /wp-admin/post-new.php5.44 ▲0.0190.20 ▼1,041.87
Media Library /wp-admin/upload.php3.02 ▲0.0130.86 ▼7.17

Server storage [IO: ▲0.08MB] [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: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Show
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲15716.18 ▲0.6411.17 ▲3.5653.54 ▲1.37
Dashboard /wp-admin2,934 ▲815.98 ▲0.15158.09 ▲29.69108.49 ▲8.35
Posts /wp-admin/edit.php2,703 ▼32.70 ▲0.0164.77 ▲1.4188.75 ▲9.27
Add New Post /wp-admin/post-new.php1,853 ▼019.09 ▲0.04377.35 ▲5.09108.37 ▼2.11
Media Library /wp-admin/upload.php1,778 ▲35.09 ▲0.10139.63 ▼9.63115.21 ▼4.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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
The following issues need your attention
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/c4d-post-show/templates/default.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/c4d-post-show/c4d-post-show.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function post_class() in wp-content/plugins/c4d-post-show/templates/__item.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 21 tag instead of maximum 10
The official readme.txt might help

c4d-post-show/c4d-post-show.php Passed 13 tests

This is the main PHP file of "Post Show" version 2.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
116 characters long description:
List posts with grid, slider, mansory. Please install C4D Plugin Manager and Redux Framework to enable all features.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin263 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3229151
Sass100111
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected