84% rps-include-content

Code Review | RPS Include Content

WordPress plugin RPS Include Content scored 84% from 54 tests.

About plugin

  • Plugin page: rps-include-content
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 11, 2012
  • Latest release: May 24, 2023
  • Number of updates: 60
  • Update frequency: every 67.9 days
  • Top authors: redpixelstudios (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

1,000+ active / 20,411 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.43ms] Passed 4 tests

A check of server-side resources used by RPS Include Content
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0335.97 ▼7.80
Dashboard /wp-admin3.32 ▲0.0247.54 ▼0.97
Posts /wp-admin/edit.php3.43 ▲0.0848.73 ▼0.29
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.89 ▼8.66
Media Library /wp-admin/upload.php3.25 ▲0.0235.53 ▲2.53
RPS Include Content /wp-admin/options-general.php?page=rps_include_content_options_page3.2129.12

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 9 new options
New WordPress options
_rps_include_content_disable_hover
_rps_include_content_private_content
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
_rps_include_content_flush_rewrite_rules
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by RPS Include Content
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.25 ▼1.131.97 ▼0.1441.76 ▼5.53
Dashboard /wp-admin2,213 ▲284.84 ▼1.06110.96 ▲10.7838.99 ▼2.67
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0140.24 ▼1.0533.84 ▼0.09
Add New Post /wp-admin/post-new.php1,536 ▼622.94 ▲4.61646.34 ▲40.9055.58 ▼0.52
Media Library /wp-admin/upload.php1,395 ▲104.23 ▲0.0196.27 ▼0.7041.33 ▼2.28
RPS Include Content /wp-admin/options-general.php?page=rps_include_content_options_page8402.0124.9427.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 9 options
    • _rps_include_content_private_content
    • _rps_include_content_disable_hover
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • _rps_include_content_flush_rewrite_rules

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 no errors were found, this is by no means an exhaustive test

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× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rps-include-content/rps-include-content.php:67

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: Add an image for screenshot #1 (The source content is flagged to the right when viewing the public site while logged in as a user with the "manage_rps_include_content" capability.)
Please take inspiration from this readme.txt

rps-include-content/rps-include-content.php Passed 13 tests

This is the main PHP file of "RPS Include Content" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
77 characters long description:
Adds the ability to include content on the current post or page from another.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected450 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1123109341
CSS1140109

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity98.00
▷ Minimum class complexity98.00
▷ Maximum class complexity98.00
Average method complexity7.06
▷ Minimum method complexity1.00
▷ Maximum method complexity71.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1168.75%
▷ Protected methods00.00%
▷ Private methods531.25%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
redpixel.png0.89KB0.12KB▼ 86.90%