62% wp-many-posts

Code Review | WP Many Posts

WordPress plugin WP Many Posts scored 62% from 54 tests.

About plugin

  • Plugin page: wp-many-posts
  • Plugin version: 1.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.0
  • WordPress version: 6.3.1
  • First release: Oct 9, 2015
  • Latest release: Sep 18, 2016
  • Number of updates: 34
  • Update frequency: every 10.5 days
  • Top authors: andrew_fisher (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,267 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.95MB] [CPU: ▼31.33ms] Passed 4 tests

An overview of server-side resources used by WP Many Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0137.42 ▼3.62
Dashboard /wp-admin2.99 ▼0.3123.10 ▼26.41
Posts /wp-admin/edit.php3.00 ▼0.3623.75 ▼26.68
Add New Post /wp-admin/post-new.php3.00 ▼2.8923.32 ▼65.41
Media Library /wp-admin/upload.php3.00 ▼0.2328.60 ▼6.82
Settings /wp-admin/admin.php?page=manyposts_settings3.0023.74
Manage Posts /wp-admin/admin.php?page=ManyPostsFilters3.0023.39

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
manyposts_settings
widget_recent-comments
category_children
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Many Posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲21615.14 ▲0.841.64 ▼0.2141.65 ▼9.73
Dashboard /wp-admin2,351 ▲1636.78 ▲1.90119.92 ▲14.6945.36 ▼0.68
Posts /wp-admin/edit.php2,243 ▲1573.32 ▲1.3351.75 ▲13.3334.89 ▼2.75
Add New Post /wp-admin/post-new.php1,814 ▲28024.76 ▲1.30593.16 ▼58.3243.58 ▼9.06
Media Library /wp-admin/upload.php1,536 ▲1515.85 ▲1.67108.69 ▲9.0641.15 ▼0.04
Settings /wp-admin/admin.php?page=manyposts_settings9542.9436.0224.66
Manage Posts /wp-admin/admin.php?page=ManyPostsFilters1,6833.5765.8737.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > 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: 8 options
    • widget_recent-comments
    • category_children
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • manyposts_settings
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 25% 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)
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ManyPostsFilters
    • > 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.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ManyPostsFilters
    • > Notice in wp-content/plugins/wp-many-posts/manyPostsGrid.php+166
    Undefined index: include_drafts
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ManyPostsFilters
    • > Notice in wp-content/plugins/wp-many-posts/manyPostsGrid.php+135
    Undefined property: WP_Error::$term_id
    • > GET request to /wp-admin/admin.php?page=ManyPostsFilters
    • > Notice in wp-content/plugins/wp-many-posts/manyPostsGrid.php+187
    Undefined property: stdClass::$postTags
    • > GET request to /wp-admin/admin.php?page=ManyPostsFilters
    • > Warning in wp-content/plugins/wp-many-posts/manyPostsGrid.php+187
    count(): Parameter must be an array or an object that implements Countable

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 items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-many-posts/manyPostsGrid.php:62
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-many-posts/wp-many-posts.php:29

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ManyPostsFilters
    • > Network (severe)
    wp-content/plugins/wp-many-posts/lib/css/kendo.default.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: bulk edit, wp-admin, admin, filters, posts

wp-many-posts/wp-many-posts.php 85% from 13 tests

The main file in "WP Many Posts" v. 1.6.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 334 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin5,660 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS30805,052
PHP49535492
PO File14391105
JavaScript20011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions11
▷ Named functions11100.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
No PNG images were found in this plugin