93% pages-before-posts

Code Review | Pages before Posts

WordPress plugin Pages before Posts scored 93% from 54 tests.

About plugin

  • Plugin page: pages-before-posts
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Oct 26, 2014
  • Latest release: Jun 23, 2017
  • Number of updates: 19
  • Update frequency: every 51.3 days
  • Top authors: Greenweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 688 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼146.70ms] Passed 4 tests

Analyzing server-side resources used by Pages before Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0126.90 ▼3.41
Dashboard /wp-admin3.07 ▲0.0034.12 ▼5.57
Posts /wp-admin/edit.php3.12 ▲0.0136.75 ▲1.57
Add New Post /wp-admin/post-new.php5.43 ▼0.0171.61 ▼579.39
Media Library /wp-admin/upload.php3.01 ▲0.0129.11 ▲1.63

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

Filesystem and database footprint
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 Pages before Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,676 ▲7515.96 ▲0.334.96 ▼0.2573.57 ▼2.83
Dashboard /wp-admin2,933 ▲406.02 ▼0.16116.33 ▼15.85166.37 ▼1.15
Posts /wp-admin/edit.php2,743 ▲33.23 ▼0.1262.32 ▼1.28131.78 ▼5.94
Add New Post /wp-admin/post-new.php3,741 ▼1618.83 ▼0.27450.27 ▲10.88155.84 ▼4.99
Media Library /wp-admin/upload.php1,749 ▼35.55 ▲0.02141.71 ▼18.17187.15 ▲0.71

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
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 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pages-before-posts/pages-before-posts.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 79% from 29 tests

readme.txt 81% 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 your attention:
  • Donate link: Invalid url: ""
  • Requires at least: Invalid version format
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
Please take inspiration from this readme.txt

pages-before-posts/pages-before-posts.php 77% from 13 tests

The principal PHP file in "Pages before Posts" v. 2.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
  • Domain Path: The domain path should be prefixed with a forward slash character ("/")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected