77% multiple-post-type-order

Code Review | Multiple Post Type Order

WordPress plugin Multiple Post Type Order scored77%from 54 tests.

About plugin

  • Plugin page: multiple-post-typ...
  • Plugin version: 1.9.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 24, 2017
  • Latest release: May 25, 2023
  • Number of updates: 71
  • Update frequency: every 32.1 days
  • Top authors: josj404 (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

700+ active /9,712 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.74MB] [CPU: ▼24.62ms] Passed 4 tests

A check of server-side resources used by Multiple Post Type Order
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.07 ▼3.55
Dashboard /wp-admin3.21 ▼0.1035.14 ▼12.50
Posts /wp-admin/edit.php3.27 ▼0.0836.09 ▼10.31
Add New Post /wp-admin/post-new.php3.10 ▼2.7935.50 ▼66.91
Media Library /wp-admin/upload.php3.21 ▼0.0232.22 ▼8.75
Multiple Post Type Order /wp-admin/options-general.php?page=mpto-options3.1829.99

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Multiple Post Type Order
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.24 ▼0.181.65 ▲0.1242.74 ▲7.34
Dashboard /wp-admin2,195 ▲145.56 ▼0.1783.84 ▼13.4437.51 ▼5.67
Posts /wp-admin/edit.php2,110 ▲102.07 ▲0.0933.42 ▼0.7832.98 ▼3.04
Add New Post /wp-admin/post-new.php1,540 ▲1218.28 ▼4.91600.09 ▼77.8069.97 ▲15.98
Media Library /wp-admin/upload.php1,406 ▲94.21 ▼0.0896.07 ▼7.8939.89 ▼5.50
Multiple Post Type Order /wp-admin/options-general.php?page=mpto-options1,0021.8923.7327.30

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mpto-options
    • > Warning in wp-content/plugins/multiple-post-type-order/mpto-function.php+23
    session_start(): Cannot start session when headers already sent
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=mpto-options
    • > Notice in wp-content/plugins/multiple-post-type-order/mpto-option.php+57
    Trying to access array offset on value of type bool

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
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-post-type-order/mpto-function.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-post-type-order/mpto-option.php:104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/multiple-post-type-order/mpto-list.php:210
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/multiple-post-type-order/multiple-post-type-order.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/multiple-post-type-order/mpto-shortcode.php:386

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
These attributes need your attention:
  • Donate link: Invalid URI found ("")
  • Screenshots: Screenshot #4 (Listing display with hover effects) image missing
The official readme.txt might help

multiple-post-type-order/multiple-post-type-order.php 92% from 13 tests

This is the main PHP file of "Multiple Post Type Order" version 1.9.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)

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
There were no executable files found in this plugin3,009 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS63871072,172
PHP55657837

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.79MB with 0.51MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png57.24KB25.61KB▼ 55.25%
screenshot-2.png42.00KB19.42KB▼ 53.78%
(invalid) screenshot-4.png660.54KB0.00KB▼ 100.00%
screenshot-1.png44.63KB22.30KB▼ 50.04%