84% pattern-post-manager

Code Review | pattern post manager

WordPress plugin pattern post manager scored84%from 54 tests.

About plugin

  • Plugin page: pattern-post-manager
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.4-4.9.6
  • WordPress version: 6.3.1
  • First release: Jul 2, 2018
  • Latest release: Jul 3, 2018
  • Number of updates: 29
  • Update frequency: every 0.0 days
  • Top authors: itsolex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /537 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

A check of server-side resources used by pattern post manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.57 ▲0.73
Dashboard /wp-admin3.33 ▼0.0149.63 ▼17.04
Posts /wp-admin/edit.php3.38 ▲0.0347.20 ▼7.17
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.20 ▼19.40
Media Library /wp-admin/upload.php3.26 ▲0.0339.04 ▲1.17
phrase pattern list /wp-admin/edit.php?post_type=its_ppm_item3.3035.17
add phrase pattern /wp-admin/post-new.php?post_type=its_ppm_item3.3845.67

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

pattern post manager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7514.31 ▼0.041.73 ▲0.0442.98 ▼1.21
Dashboard /wp-admin2,227 ▲535.54 ▼0.0290.18 ▲3.6440.17 ▲3.16
Posts /wp-admin/edit.php2,129 ▲262.01 ▼0.0337.53 ▲1.1237.90 ▲2.59
Add New Post /wp-admin/post-new.php1,553 ▲2723.36 ▲0.35632.99 ▼82.4549.60 ▼4.89
Media Library /wp-admin/upload.php1,429 ▲294.23 ▼0.01101.30 ▼4.8445.27 ▼1.56
phrase pattern list /wp-admin/edit.php?post_type=its_ppm_item1,0931.9729.2432.64
add phrase pattern /wp-admin/post-new.php?post_type=its_ppm_item2,2227.68182.4767.94

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pattern-post-manager/its-ppm.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
Attributes that require attention:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

pattern-post-manager/its-ppm.php 92% from 13 tests

The primary PHP file in "pattern post manager" version 1.1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pattern-post-manager.php" instead of "its-ppm.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin129 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2262879
PO File1101036
JavaScript13014

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.04
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.17
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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