68% bulk-convert-post-format

Code Review | Bulk Convert Post Format

WordPress plugin Bulk Convert Post Format scored68%from 54 tests.

About plugin

  • Plugin page: bulk-convert-post...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Oct 15, 2013
  • Latest release: Oct 25, 2023
  • Number of updates: 16
  • Update frequency: every 228.9 days
  • Top authors: razorfrog (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /6,578 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.94MB] [CPU: ▼32.17ms] Passed 4 tests

A check of server-side resources used by Bulk Convert Post Format
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0248.70 ▲10.80
Dashboard /wp-admin3.01 ▼0.3023.14 ▼26.84
Posts /wp-admin/edit.php3.01 ▼0.3521.81 ▼23.09
Add New Post /wp-admin/post-new.php3.01 ▼2.8822.29 ▼69.30
Media Library /wp-admin/upload.php3.01 ▼0.2221.80 ▼9.43
Bulk Edit Post Format /wp-admin/tools.php?page=converter3.0224.69

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Bulk Convert Post Format
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▼0.441.81 ▲0.1743.70 ▲3.94
Dashboard /wp-admin2,202 ▲225.62 ▼0.0481.19 ▼9.0937.05 ▼2.88
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0533.24 ▼1.8132.39 ▼4.33
Add New Post /wp-admin/post-new.php1,538 ▼018.01 ▼5.35634.03 ▼36.5367.11 ▼1.18
Media Library /wp-admin/upload.php1,404 ▲74.19 ▼0.0196.27 ▼6.4741.22 ▼7.80
Bulk Edit Post Format /wp-admin/tools.php?page=converter8632.0324.6823.79

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=converter
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/bulk-convert-post-format/bulk-convert-post-format.php:18

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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: post formats, bulk convert

bulk-convert-post-format/bulk-convert-post-format.php Passed 13 tests

The main PHP script in "Bulk Convert Post Format" version 1.1.3 is automatically included on every request by WordPress
59 characters long description:
Bulk convert posts in a category to a selected post format.

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
No dangerous file extensions were detected114 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1241597
JavaScript14217

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.52
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin