84% wppostpagemanager

Code Review | wpPostPageManager

WordPress plugin wpPostPageManager scored84%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: 6.3.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 /689 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.91ms] Passed 4 tests

An overview of server-side resources used by wpPostPageManager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.87 ▼5.94
Dashboard /wp-admin3.33 ▲0.0244.69 ▼3.81
Posts /wp-admin/edit.php3.38 ▲0.0247.94 ▼4.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.60 ▼0.43
Media Library /wp-admin/upload.php3.25 ▲0.0234.54 ▼1.69
Scheduled (0) /wp-admin/edit.php?post_status=future&post_type=page3.3035.09
Published Post(s) /wp-admin/edit.php?post_type=post&post_status=publish3.3844.22
Published Page(s) /wp-admin/edit.php?post_type=page&post_status=publish3.3540.02
Drafts (0) /wp-admin/edit.php?post_status=draft&post_type=post3.3135.79
Drafts (1) /wp-admin/edit.php?post_status=draft&post_type=page3.3539.26
Scheduled (0) /wp-admin/edit.php?post_status=future&post_type=post3.3137.81

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

wpPostPageManager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.26 ▼1.324.83 ▲2.9941.92 ▼1.56
Dashboard /wp-admin2,222 ▲344.85 ▼0.28108.87 ▼0.7240.63 ▼2.90
Posts /wp-admin/edit.php2,105 ▲132.03 ▲0.0239.18 ▼3.3436.67 ▲0.60
Add New Post /wp-admin/post-new.php1,526 ▲923.35 ▲5.78632.88 ▼33.3742.92 ▼20.42
Media Library /wp-admin/upload.php1,407 ▲164.23 ▲0.0194.88 ▼1.2341.38 ▲0.99
Scheduled (0) /wp-admin/edit.php?post_status=future&post_type=page1,1681.9331.1732.11
Published Post(s) /wp-admin/edit.php?post_type=post&post_status=publish2,0872.0235.3032.35
Published Page(s) /wp-admin/edit.php?post_type=page&post_status=publish1,8681.9935.4033.08
Drafts (0) /wp-admin/edit.php?post_status=draft&post_type=post1,2431.9631.6729.15
Drafts (1) /wp-admin/edit.php?post_status=draft&post_type=page1,8221.9832.9231.75
Scheduled (0) /wp-admin/edit.php?post_status=future&post_type=post1,2431.9631.8930.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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
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
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_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
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
Please take inspiration from this readme.txt

wppostpagemanager/wpPostPageManager.php 92% from 13 tests

The entry point to "wpPostPageManager" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wppostpagemanager.php" instead of "wpPostPageManager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2123340

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected