90% pryc-wp-add-custom-content-to-bottom-of-post

Code Review | PRyC WP: Add custom content to post and page (top/bottom)

WordPress plugin PRyC WP: Add custom content to post and page (top/bottom) scored90%from 54 tests.

About plugin

  • Plugin page: pryc-wp-add-custo...
  • Plugin version: 2.6.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.2.2
  • WordPress version: 6.3.1
  • First release: Dec 21, 2015
  • Latest release: Jun 20, 2023
  • Number of updates: 43
  • Update frequency: every 63.7 days
  • Top authors: PRyCpl (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /34,556 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.28MB] [CPU: ▼19.14ms] Passed 4 tests

Analyzing server-side resources used by PRyC WP: Add custom content to post and page (top/bottom)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.10 ▼8.63
Dashboard /wp-admin3.37 ▲0.0250.46 ▼10.10
Posts /wp-admin/edit.php3.42 ▲0.0643.45 ▼3.52
Add New Post /wp-admin/post-new.php4.66 ▼1.2341.59 ▼54.32
Media Library /wp-admin/upload.php3.29 ▲0.0636.84 ▼3.51
PRyC WP: Add custom content /wp-admin/options-general.php?page=pryc_wp_add_custom_content_to_bottom_of_post3.2631.77

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for PRyC WP: Add custom content to post and page (top/bottom)
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.59 ▼1.004.66 ▲2.6544.75 ▼0.33
Dashboard /wp-admin2,210 ▲224.86 ▼0.95110.51 ▼7.4441.80 ▼7.54
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0034.40 ▲0.1231.71 ▼6.80
Add New Post /wp-admin/post-new.php1,536 ▲1723.40 ▲0.16639.55 ▼17.8757.53 ▲5.77
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.0295.62 ▲0.3243.67 ▲3.86
PRyC WP: Add custom content /wp-admin/options-general.php?page=pryc_wp_add_custom_content_to_bottom_of_post8892.0330.1329.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
7 plugin tags: signature, wordpress, top, footer, page...

pryc-wp-add-custom-content-to-bottom-of-post/pryc-wp-add-custom-content-to-bottom-of-post.php Passed 13 tests

The primary PHP file in "PRyC WP: Add custom content to post and page (top/bottom)" version 2.6.6 is used by WordPress to initiate all plugin functionality
123 characters long description:
Add custom content to post and/or page (top/bottom). You may use text, HTML, Shortcodes and JavaScript. Simple, but work...

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
Everything looks great! No dangerous files found in this plugin249 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP114448249

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions18
▷ Named functions18100.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