10% wi-posts

Code Review | wi_Posts

WordPress plugin wi_Posts scored10%from 54 tests.

About plugin

  • Plugin page: wi-posts
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Sep 17, 2021
  • Latest release: Sep 19, 2021
  • Number of updates: 8
  • Update frequency: every 0.3 days
  • Top authors: sp8iky (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /331 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)

Server metrics [RAM: ▼0.18MB] [CPU: ▼19.16ms] Passed 4 tests

An overview of server-side resources used by wi_Posts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.80 ▼0.82
Dashboard /wp-admin3.13 ▼0.1731.83 ▼21.84
Posts /wp-admin/edit.php3.26 ▼0.0937.04 ▼16.06
Add New Post /wp-admin/post-new.php5.46 ▼0.4374.10 ▼32.06
Media Library /wp-admin/upload.php3.20 ▼0.0331.30 ▼6.67
wi_post_Placeholder /wp-admin/admin.php?page=placeholder3.1125.67
wi_Posts /wp-admin/admin.php?page=Post-Menu3.1126.23
wi_post_Repeater /wp-admin/admin.php?page=repeater3.1127.64
wi_post_Templates /wp-admin/admin.php?page=templates3.1126.84

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 16 new files
Database: 7 new tables, 6 new options
New tables
wi_post_Content_Repeater
wi_post_Templates
wi_post_Content_Repeater_Placeholder
wi_post_Content
wi_post_Placeholder
wi_post_Repeater
wi_post_Content_Placeholder
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for wi_Posts
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲4615.06 ▲0.711.74 ▼0.9143.59 ▼5.16
Dashboard /wp-admin2,241 ▲616.36 ▲0.7397.34 ▲8.9542.32 ▼1.32
Posts /wp-admin/edit.php2,283 ▲1803.47 ▲1.4952.44 ▲10.4736.71 ▼2.48
Add New Post /wp-admin/post-new.php1,557 ▲2823.20 ▲0.08689.61 ▲10.6157.70 ▼2.10
Media Library /wp-admin/upload.php1,587 ▲1874.99 ▲0.79107.88 ▼2.2141.42 ▼11.05
wi_post_Placeholder /wp-admin/admin.php?page=placeholder1,2012.9339.5834.24
wi_Posts /wp-admin/admin.php?page=Post-Menu1,1832.9641.4741.56
wi_post_Repeater /wp-admin/admin.php?page=repeater1,1572.9237.3528.67
wi_post_Templates /wp-admin/admin.php?page=templates1,1632.9837.0631.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 7 tables
    • wi_post_Templates
    • wi_post_Content
    • wi_post_Content_Repeater_Placeholder
    • wi_post_Repeater
    • wi_post_Placeholder
    • wi_post_Content_Repeater
    • wi_post_Content_Placeholder
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=templates
    • > Deprecated in wp-content/plugins/wi-posts/wi_posts.php+62
    Function create_function() is deprecated
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=templates
    • > User deprecated in wp-includes/functions.php+5453
    Function wp_tiny_mce is deprecated since version 3.3.0! Use wp_editor() instead.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wi-posts/wi_posts.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=templates
    • > Network (severe)
    https://www.paypalobjects.com/en_DE/i/scr/pixel.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: template, replace, repeater, wiki, post...

wi-posts/wi_posts.php 92% from 13 tests

The primary PHP file in "wi_Posts" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wi-posts.php" instead of "wi_posts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,051 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP13712281,955
PO File1396696

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected