10% wp-infeed-post

Code Review | WP Indeed Post

WordPress plugin WP Indeed Post scored10%from 54 tests.

About plugin

  • Plugin page: wp-infeed-post
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jan 24, 2018
  • Latest release: Jan 24, 2018
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: takumahirotsu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,073 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/wp-infeed-post/wp-infeed-post.php+90
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Infeed_Post_Widget has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼50.06ms] Passed 4 tests

Server-side resources used by WP Indeed Post
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.1811.18 ▼29.95
Dashboard /wp-admin2.29 ▼1.0111.59 ▼41.88
Posts /wp-admin/edit.php2.29 ▼1.0611.18 ▼39.01
Add New Post /wp-admin/post-new.php2.29 ▼3.5911.30 ▼89.39
Media Library /wp-admin/upload.php2.29 ▼0.9311.74 ▼25.82

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_wp_infeed_post_widget
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Indeed Post
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲1514.33 ▼0.231.76 ▼0.0243.74 ▲2.28
Dashboard /wp-admin2,204 ▲305.65 ▲0.0795.13 ▲4.8442.50 ▼3.48
Posts /wp-admin/edit.php2,109 ▲61.96 ▼0.0135.74 ▼8.7933.64 ▼2.73
Add New Post /wp-admin/post-new.php1,547 ▲2118.13 ▼4.90658.59 ▲2.6468.43 ▲14.34
Media Library /wp-admin/upload.php1,412 ▲154.18 ▼0.05115.32 ▲17.8449.26 ▲3.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in WP_Infeed_Post_Widget is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_wp_infeed_post_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function query_posts() in wp-content/plugins/wp-infeed-post/views/wp-infeed-post-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/wp-infeed-post/wp-infeed-post.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_url() in wp-content/plugins/wp-infeed-post/views/wp-infeed-post-options.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (2.) image missing
  • Donate link: Invalid URI ("")
The official readme.txt is a good inspiration

wp-infeed-post/wp-infeed-post.php Passed 13 tests

This is the main PHP file of "WP Indeed Post" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
インフィード広告を挿入可能な新着記事表示プラグイン

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin334 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP32327288
CSS15146

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
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