89% post-type-manager

Code Review | Post Type Manager

WordPress plugin Post Type Manager scored89%from 54 tests.

About plugin

  • Plugin page: post-type-manager
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Jul 29, 2017
  • Latest release: Sep 1, 2020
  • Number of updates: 4
  • Update frequency: every 282.5 days
  • Top authors: Abhay Raj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,163 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.28ms] Passed 4 tests

This is a short check of server-side resources used by Post Type Manager
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.56 ▲0.92
Dashboard /wp-admin3.34 ▼0.0048.92 ▼14.76
Posts /wp-admin/edit.php3.41 ▲0.0550.37 ▲2.34
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.01 ▼10.20
Media Library /wp-admin/upload.php3.26 ▲0.0436.12 ▼1.06

Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/post-type-manager/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Post Type Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲6913.22 ▼1.212.11 ▲0.2745.42 ▼1.04
Dashboard /wp-admin2,221 ▲155.90 ▼0.01101.07 ▼4.7140.00 ▼6.86
Posts /wp-admin/edit.php2,171 ▲712.05 ▲0.0542.62 ▲5.1335.67 ▼1.74
Add New Post /wp-admin/post-new.php1,546 ▲1523.08 ▼0.02678.40 ▼37.6254.17 ▼11.53
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0595.84 ▼13.5542.41 ▼5.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Screenshots: Add an image for screenshot #1 (screenshot-2.jpg)
Please take inspiration from this readme.txt

post-type-manager/post-type-manager.php Passed 13 tests

"Post Type Manager" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
74 characters long description:
This plugin to manage posts, pages, custom posts to move other post types.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin261 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP28384230
JavaScript113631

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods13
▷ Static methods17.69%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin