83% wp-post-corrector

Code Review | WP Post Corrector

WordPress plugin WP Post Corrector scored83%from 54 tests.

About plugin

  • Plugin page: wp-post-corrector
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9
  • WordPress version: 6.3.1
  • First release: Feb 17, 2011
  • Latest release: May 15, 2018
  • Number of updates: 8
  • Update frequency: every 332.0 days
  • Top authors: vipuljariwala (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /8,375 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.39ms] Passed 4 tests

This is a short check of server-side resources used by WP Post Corrector
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.27 ▲0.53
Dashboard /wp-admin3.31 ▲0.0144.15 ▲0.93
Posts /wp-admin/edit.php3.36 ▲0.0147.36 ▲0.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.02 ▼13.07
Media Library /wp-admin/upload.php3.23 ▲0.0132.52 ▼1.27
WP Correct /wp-admin/tools.php?page=export3.2029.23

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Post Corrector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.22 ▼1.131.81 ▼0.0042.87 ▲0.05
Dashboard /wp-admin2,204 ▲195.81 ▼0.08104.89 ▲2.6536.73 ▼4.10
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0241.04 ▲2.6736.16 ▼2.47
Add New Post /wp-admin/post-new.php1,538 ▲823.53 ▲0.30654.50 ▲3.2659.82 ▲8.50
Media Library /wp-admin/upload.php1,395 ▲104.38 ▲0.1296.25 ▼5.2043.55 ▼0.76
WP Correct /wp-admin/tools.php?page=export9602.0326.0243.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 20× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined index: uemsg in wp-content/plugins/wp-post-corrector/messages.php on line 27
    • > PHP Notice
      Undefined index: uemsg in wp-content/plugins/wp-post-corrector/messages.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-post-corrector/export/form.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-corrector/wp_export.php:22
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-post-corrector/update/bulk_update.php on line 2
    • > PHP Notice
      Undefined index: backup in wp-content/plugins/wp-post-corrector/export/admin_export.php on line 3
    • > PHP Notice
      Undefined index: emsg in wp-content/plugins/wp-post-corrector/messages.php on line 8
    • > PHP Notice
      Undefined index: emsg in wp-content/plugins/wp-post-corrector/messages.php on line 5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-post-corrector/update/form.php:2
    • > PHP Notice
      Undefined index: msg in wp-content/plugins/wp-post-corrector/upload/form.php on line 2

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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Screenshot #2 (screen 02) image missing
Please take inspiration from this readme.txt

wp-post-corrector/wp_export.php 85% from 13 tests

"WP Post Corrector" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-post-corrector.php" instead of "wp_export.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 384 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,608 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP975281,608

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin