79% wp-post-controller

Code Review | WP Post Controller

WordPress plugin WP Post Controller scored 79% from 54 tests.

About plugin

  • Plugin page: wp-post-controller
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Nov 14, 2020
  • Latest release: Mar 7, 2021
  • Number of updates: 21
  • Update frequency: every 5.5 days
  • Top authors: wordsector (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 491 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▲1.26ms] Passed 4 tests

An overview of server-side resources used by WP Post Controller
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2257.90 ▲19.36
Dashboard /wp-admin3.52 ▲0.2246.97 ▼3.48
Posts /wp-admin/edit.php3.64 ▲0.2846.29 ▼1.81
Add New Post /wp-admin/post-new.php6.13 ▲0.25107.84 ▲9.59
Media Library /wp-admin/upload.php3.45 ▲0.2238.29 ▲0.74

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 7 new options
New tables
wp_wppc_post_views
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
wppc_database_setup_done

Browser metrics Passed 4 tests

An overview of browser requirements for WP Post Controller
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲9113.18 ▼1.201.71 ▼0.0342.95 ▲4.35
Dashboard /wp-admin2,230 ▲474.90 ▼0.0193.94 ▼19.4368.48 ▲24.80
Posts /wp-admin/edit.php2,126 ▲342.15 ▲0.1834.77 ▼1.5833.50 ▲0.48
Add New Post /wp-admin/post-new.php6,651 ▲5,13429.30 ▲11.79984.15 ▲325.7453.50 ▼2.84
Media Library /wp-admin/upload.php1,415 ▲274.17 ▼0.0394.30 ▼1.8450.60 ▲7.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_wppc_post_views
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • wppc_database_setup_done
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5 in wp-post-controller/assets to your readme.txt
  • Tags: You are using too many tags: 14 tag instead of maximum 10
The official readme.txt might help

wp-post-controller/wp-post-controller.php 92% from 13 tests

The main file in "WP Post Controller" v. 1.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
No dangerous file extensions were detected1,255 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP9472571,076
JavaScript3291117
CSS51562

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity26.33
▷ Minimum class complexity10.00
▷ Maximum class complexity50.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods51
▷ Static methods47.84%
▷ Public methods4792.16%
▷ Protected methods00.00%
▷ Private methods47.84%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/post-controller.png9.31KB4.73KB▼ 49.20%