93% add-posts-to-pages

Code Review | Add Posts to Pages

WordPress plugin Add Posts to Pages scored 93% from 54 tests.

About plugin

  • Plugin page: add-posts-to-pages
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.2
  • WordPress version: 5.9.2
  • First release: Nov 11, 2013
  • Latest release: Oct 8, 2014
  • Number of updates: 26
  • Update frequency: every 16.6 days
  • Top authors: ArshamMirshah (100%)

Code review

54 tests

User reviews

25 reviews

Install metrics

4,000+ active / 73,092 total downloads


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: ▼304.33ms] Passed 4 tests

An overview of server-side resources used by Add Posts to Pages
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0153.27 ▲6.44
Dashboard /wp-admin3.41 ▲0.0032.20 ▼1.53
Posts /wp-admin/edit.php3.64 ▲0.0034.89 ▼1.74
Add New Post /wp-admin/post-new.php6.88 ▼0.0992.33 ▼1,212.91
Media Library /wp-admin/upload.php3.29 ▲0.0022.78 ▼1.12

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Add Posts to Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.82 ▼0.295.80 ▼0.682.54 ▼0.50
Dashboard /wp-admin2,888 ▲276.17 ▲0.00117.66 ▼15.86155.55 ▼6.55
Posts /wp-admin/edit.php2,688 ▼03.24 ▲0.0167.79 ▲4.14146.26 ▲3.45
Add New Post /wp-admin/post-new.php1,661 ▼016.33 ▼1.05400.24 ▼20.57159.32 ▲4.84
Media Library /wp-admin/upload.php1,698 ▼35.50 ▲0.00139.09 ▼4.95191.46 ▲5.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

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)
Good news, no errors were detected

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/add-posts-to-pages/index.php:149

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === add-posts-to-pages === )
You can look at the official readme.txt

add-posts-to-pages/index.php 85% from 13 tests

The entry point to "Add Posts to Pages" version 1.4.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 195 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("add-posts-to-pages.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.44
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 functions1100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin