84% post-type-converter

Code Review | Post Type Converter

WordPress plugin Post Type Converter scored84%from 54 tests.

About plugin

  • Plugin page: post-type-converter
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7.4-4.1
  • WordPress version: 6.3.1
  • First release: Dec 24, 2011
  • Latest release: Jan 5, 2015
  • Number of updates: 20
  • Update frequency: every 55.4 days
  • Top authors: kevinlangleyjr (65%)csloisel (20%)voceplatforms (15%)seanosh (15%)

Code review

54 tests

User reviews

6 reviews

Install metrics

1,000+ active /32,329 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Post Type Converter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0331.42 ▼6.43
Dashboard /wp-admin3.33 ▲0.0347.01 ▼4.78
Posts /wp-admin/edit.php3.38 ▲0.0345.92 ▼13.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0393.56 ▼2.64
Media Library /wp-admin/upload.php3.25 ▲0.0234.93 ▲3.11

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Post Type Converter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.56 ▼0.441.71 ▲0.0739.93 ▼1.08
Dashboard /wp-admin2,203 ▲125.80 ▲0.9398.25 ▼16.5337.45 ▼5.86
Posts /wp-admin/edit.php2,136 ▲472.06 ▲0.0842.17 ▲1.0836.29 ▲3.17
Add New Post /wp-admin/post-new.php1,514 ▼517.46 ▼5.52632.11 ▼31.4471.21 ▲4.68
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0297.97 ▼2.7341.36 ▼1.65

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-type-converter/post-type-converter.php:145

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: cpt, post type, custom post type, converter

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

"Post Type Converter" version 0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
100 characters long description:
Gives a qualified user the ability to convert a post from one post_type to another public post_type.

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
There were no executable files found in this plugin122 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1259112
JavaScript12010

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity27.00
▷ Minimum class complexity27.00
▷ Maximum class complexity27.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods9100.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
There were not PNG files found in your plugin