90% show-website-content-in-wordpress-page-or-post

Code Review | Website Content in Page or Post

WordPress plugin Website Content in Page or Post scored90%from 54 tests.

About plugin

  • Plugin page: show-website-cont...
  • Plugin version: 2023.11.16
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.4.1
  • WordPress version: 6.3.1
  • First release: May 24, 2012
  • Latest release: Nov 16, 2023
  • Number of updates: 12
  • Update frequency: every 349.5 days
  • Top authors: christopherross (66.67%)matteoenna (33.33%)horshipsrectors (16.67%)

Code review

54 tests

User reviews

5 reviews

Install metrics

100+ active /7,696 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Website Content in Page or Post
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.74 ▼0.45
Dashboard /wp-admin3.32 ▲0.0243.24 ▼5.48
Posts /wp-admin/edit.php3.38 ▲0.0244.66 ▼4.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.86 ▼13.20
Media Library /wp-admin/upload.php3.25 ▲0.0232.57 ▲2.81

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Website Content in Page or Post: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5314.29 ▼0.102.06 ▲0.2140.59 ▼3.92
Dashboard /wp-admin2,198 ▲215.63 ▼0.0191.15 ▼13.5639.99 ▼3.09
Posts /wp-admin/edit.php2,100 ▼31.95 ▼0.0641.06 ▲0.8335.02 ▼4.39
Add New Post /wp-admin/post-new.php1,526 ▼922.81 ▼0.38595.05 ▼216.4554.49 ▼4.05
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.04101.07 ▼3.1542.44 ▼0.47

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
No tags were found

show-website-content-in-wordpress-page-or-post/show-website-content-in-wordpress-page-or-post.php Passed 13 tests

The main PHP script in "Website Content in Page or Post" version 2023.11.16 is automatically included on every request by WordPress
89 characters long description:
Fetches the content of another webpage or URL to display inside the current post or page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin97 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2321197

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.70
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods110.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected