88% add-custom-content-after-post

Code Review | Add custom content after post

WordPress plugin Add custom content after post scored 88% from 54 tests.

About plugin

  • Plugin page: add-custom-conten...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 5.9.2
  • First release: Jan 7, 2015
  • Latest release: Jan 8, 2015
  • Number of updates: 2
  • Update frequency: every 49.5 days
  • Top authors: fabio-zuanon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,245 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Add custom content after post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0149.74 ▲3.16
Dashboard /wp-admin3.42 ▲0.0132.22 ▼1.65
Posts /wp-admin/edit.php3.65 ▲0.0138.68 ▲1.70
Add New Post /wp-admin/post-new.php6.89 ▼0.0890.93 ▼1,225.38
Media Library /wp-admin/upload.php3.30 ▲0.0122.69 ▼1.60

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Add custom content after post: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1415.79 ▼0.217.06 ▲1.252.18 ▼0.38
Dashboard /wp-admin2,897 ▲366.13 ▼0.17113.73 ▼22.60157.55 ▼1.71
Posts /wp-admin/edit.php2,693 ▲53.23 ▼0.0068.10 ▼0.95148.80 ▲7.38
Add New Post /wp-admin/post-new.php1,664 ▼4716.46 ▼4.33395.76 ▼64.95153.83 ▲0.50
Media Library /wp-admin/upload.php1,703 ▲25.53 ▲0.03141.44 ▼5.96190.19 ▲3.14
Add Custom Content After Page and Post /wp-admin/acc_Add_Custom_Content.php260.940.0422.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests 50% 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 take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-custom-content-after-post/admin/index.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-custom-content-after-post/admin/index.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/acc_Add_Custom_Content.php
    • > Network (severe)
    wp-admin/acc_Add_Custom_Content.php - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: custom content, disclaimer, author info

add-custom-content-after-post/index.php 85% from 13 tests

The main file in "Add custom content after post" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("add-custom-content-after-post.php" instead of "index.php")
  • Description: The plugin description must be longer than 10 characters (currently 0 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 plugin34 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.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