90% include-url

Code Review | Include URL

WordPress plugin Include URL scored90%from 54 tests.

About plugin

  • Plugin page: include-url
  • Plugin version: 0.3.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2016
  • Latest release: Nov 2, 2022
  • Number of updates: 28
  • Update frequency: every 76.9 days
  • Top authors: samsk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,737 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.01MB] [CPU: ▼4.64ms] Passed 4 tests

A check of server-side resources used by Include URL
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.56 ▲2.31
Dashboard /wp-admin3.31 ▼0.0444.09 ▼10.40
Posts /wp-admin/edit.php3.36 ▲0.0048.23 ▲5.19
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.96 ▼10.17
Media Library /wp-admin/upload.php3.23 ▲0.0034.67 ▼0.28

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Include URL
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▲0.151.75 ▲0.0443.68 ▼0.28
Dashboard /wp-admin2,189 ▲125.54 ▲0.0285.73 ▼4.0837.20 ▼3.41
Posts /wp-admin/edit.php2,103 ▲32.08 ▲0.1039.27 ▲3.2834.83 ▲2.30
Add New Post /wp-admin/post-new.php1,526 ▼222.89 ▼0.01653.19 ▼48.0355.22 ▼0.22
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0494.30 ▲0.3644.14 ▲0.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: include, url

include-url/include-url.php 92% from 13 tests

Analyzing the main PHP file in "Include URL" version 0.3.5
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected116 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2226681
Markdown112035

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin