10% wp-interactive-posts

Code Review | WP Interactive Posts

WordPress plugin WP Interactive Posts scored10%from 54 tests.

About plugin

  • Plugin page: wp-interactive-posts
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.2.1
  • WordPress version: 6.3.1
  • First release: May 1, 2013
  • Latest release: May 7, 2013
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: chetansingh2410 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /761 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/wp-interactive-posts/index.php+363
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.06ms] Passed 4 tests

An overview of server-side resources used by WP Interactive Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.17 ▲1.92
Dashboard /wp-admin3.31 ▲0.0055.62 ▲4.48
Posts /wp-admin/edit.php3.36 ▲0.0050.96 ▼0.48
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.52 ▼12.00
Media Library /wp-admin/upload.php3.23 ▲0.0038.25 ▼1.66

Server storage [IO: ▲0.22MB] [DB: ▲0.31MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for WP Interactive Posts
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.16 ▼0.192.10 ▲0.4640.32 ▼7.36
Dashboard /wp-admin2,192 ▲225.55 ▼0.1391.09 ▼17.4237.82 ▼0.68
Posts /wp-admin/edit.php2,103 ▼01.99 ▼0.0140.08 ▼0.3135.55 ▼0.00
Add New Post /wp-admin/post-new.php1,526 ▼022.91 ▼0.25654.64 ▼46.7267.35 ▲5.06
Media Library /wp-admin/upload.php1,400 ▼34.15 ▼0.0299.75 ▼2.1147.21 ▲2.35

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/wp-interactive-posts/index.php on line 363

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: Screenshot #1 (WP Interactive Post sharing.) image missing
The official readme.txt is a good inspiration

wp-interactive-posts/index.php 92% from 13 tests

Analyzing the main PHP file in "WP Interactive Posts" version 1.1
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-interactive-posts.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected316 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1398316

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.94
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%
Functions7
▷ Named functions7100.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
1 PNG file occupies 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png109.65KB35.89KB▼ 67.26%