94% wppostpagemanager

Code Review | wpPostPageManager

WordPress plugin wpPostPageManager scored 94% from 54 tests.

About plugin

  • Plugin page: wppostpagemanager
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5.1
  • WordPress version: 5.8.1
  • First release: Nov 14, 2015
  • Latest release: Sep 17, 2020
  • Number of updates: 6
  • Update frequency: every 294.8 days
  • Top authors: ceaksan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 545 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by wpPostPageManager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1424.04 ▲3.11
Dashboard /wp-admin3.08 ▲0.0131.33 ▼4.89
Posts /wp-admin/edit.php3.13 ▲0.0236.64 ▲5.72
Add New Post /wp-admin/post-new.php5.44 ▲0.0069.85 ▼582.81
Media Library /wp-admin/upload.php3.02 ▲0.0223.32 ▲1.05
Published Page(s) /wp-admin/edit.php?post_type=page&post_status=publish3.1230.04
Drafts (0) /wp-admin/edit.php?post_status=draft&post_type=post3.0724.37
Scheduled (0) /wp-admin/edit.php?post_status=future&post_type=page3.0723.69
Scheduled (0) /wp-admin/edit.php?post_status=future&post_type=post3.0723.99
Published Post(s) /wp-admin/edit.php?post_type=post&post_status=publish3.1329.10
Drafts (1) /wp-admin/edit.php?post_status=draft&post_type=page3.1127.43

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

wpPostPageManager: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,685 ▲8415.57 ▼0.175.16 ▼2.4375.46 ▲4.89
Dashboard /wp-admin2,952 ▲566.14 ▼0.02116.03 ▼15.97166.70 ▼5.70
Posts /wp-admin/edit.php2,761 ▲213.24 ▲0.0064.91 ▼5.60135.40 ▼16.05
Add New Post /wp-admin/post-new.php3,711 ▼21518.53 ▼0.85446.44 ▼127.20163.16 ▼56.35
Media Library /wp-admin/upload.php1,765 ▲135.49 ▲0.01156.37 ▲3.13198.76 ▲15.84
Published Page(s) /wp-admin/edit.php?post_type=page&post_status=publish2,4723.2262.46139.11
Drafts (0) /wp-admin/edit.php?post_status=draft&post_type=post1,6873.0760.17121.23
Scheduled (0) /wp-admin/edit.php?post_status=future&post_type=page1,5693.0862.76127.32
Scheduled (0) /wp-admin/edit.php?post_status=future&post_type=post1,6863.0661.51122.33
Published Post(s) /wp-admin/edit.php?post_type=post&post_status=publish2,7613.2462.70135.24
Drafts (1) /wp-admin/edit.php?post_status=draft&post_type=page2,4263.2165.58141.91

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 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wppostpagemanager/wpPostPageManager.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

wppostpagemanager/wpPostPageManager.php 92% from 13 tests

"wpPostPageManager" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wppostpagemanager.php" instead of "wpPostPageManager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2123340

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
No PNG images were found in this plugin