10% include-post-page

Code Review | List category posts

WordPress plugin List category posts scored10%from 54 tests.

About plugin

  • Plugin page: include-post-page
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: May 8, 2014
  • Latest release: May 11, 2014
  • Number of updates: 3
  • Update frequency: every 1.3 days
  • Top authors: tribhuj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /796 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/include-post-page/include_post_page.php+72
    Methods with the same name as their class will not be constructors in a future version of PHP; TriPostInc_CPost_Menu_Widget has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼51.94ms] Passed 4 tests

An overview of server-side resources used by List category posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.97 ▼39.35
Dashboard /wp-admin2.10 ▼1.216.52 ▼46.78
Posts /wp-admin/edit.php2.10 ▼1.265.12 ▼39.88
Add New Post /wp-admin/post-new.php2.10 ▼3.797.41 ▼81.75
Media Library /wp-admin/upload.php2.10 ▼1.135.60 ▼34.46

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
widget_tripostinc-cpost-widget
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

List category posts: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8014.74 ▲0.101.81 ▲0.0644.02 ▲0.06
Dashboard /wp-admin2,221 ▲305.88 ▲0.99102.74 ▼4.8384.23 ▲35.99
Posts /wp-admin/edit.php2,104 ▲182.00 ▼0.0137.15 ▲2.0035.60 ▲0.32
Add New Post /wp-admin/post-new.php1,680 ▲14622.43 ▼0.53750.87 ▲70.3440.75 ▼17.26
Media Library /wp-admin/upload.php1,406 ▲214.18 ▼0.0295.78 ▼7.9576.48 ▲30.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/include-post-page/include_post_page.php+72
    Methods with the same name as their class will not be constructors in a future version of PHP; TriPostInc_CPost_Menu_Widget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_tripostinc-cpost-widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/include-post-page/include_post_page.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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.png. Note that this screenshot shows the admin section of this plugin how to search post or page ID.), #2 (This screen shot description corresponds to screenshot-2.png. Note that this screenshot shows how to add shotcode inside another post.), #3 (This screen shot description corresponds to screenshot-3.png. Note that this screenshot shows the widget.), #4 (This screen shot description corresponds to screenshot-4.png. Note that this screenshot shows how to add Information in widget.)
Please take inspiration from this readme.txt

include-post-page/include_post_page.php 92% from 13 tests

The main PHP script in "List category posts" version 1.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("include-post-page.php" instead of "include_post_page.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin159 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13930159

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.36MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png305.13KB106.34KB▼ 65.15%
screenshot-3.png16.37KB8.14KB▼ 50.24%
screenshot-4.png5.74KB3.64KB▼ 36.60%
screenshot-1.png35.61KB16.58KB▼ 53.43%
images/tribhuj.com_logo.png3.48KB0.59KB▼ 83.16%