10% safly-curl-patch

Code Review | SaFly Curl Patch

WordPress plugin SaFly Curl Patch scored10%from 54 tests.

About plugin

  • Plugin page: safly-curl-patch
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 8, 2018
  • Latest release: Feb 8, 2018
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: safly (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

400+ active /7,122 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/safly-curl-patch/SaFly-Curl-Patch.php+26
    define(): Declaration of case-insensitive constants is deprecated

Server metrics [RAM: ▼1.92MB] [CPU: ▼54.71ms] Passed 4 tests

A check of server-side resources used by SaFly Curl Patch
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.82 ▼37.80
Dashboard /wp-admin2.09 ▼1.228.36 ▼36.85
Posts /wp-admin/edit.php2.09 ▼1.278.31 ▼39.12
Add New Post /wp-admin/post-new.php2.09 ▼3.806.66 ▼105.05
Media Library /wp-admin/upload.php2.09 ▼1.157.20 ▼25.43

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • There were 1 file (0.21KB) illegally modified outside of "wp-content/plugins/safly-curl-patch/" and "wp-content/uploads/"
    • (new file) wp-content/cache/safly/safly-curl-patch/2023-10-06.txt
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for SaFly Curl Patch
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.101.92 ▲0.0644.26 ▲6.78
Dashboard /wp-admin2,209 ▲205.91 ▲0.96106.23 ▼15.1242.42 ▼1.85
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.48 ▼2.1138.35 ▲3.27
Add New Post /wp-admin/post-new.php1,514 ▼717.94 ▼5.27645.75 ▲25.1861.10 ▲6.45
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0693.93 ▼4.9842.79 ▼1.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/safly-curl-patch/SaFly-Curl-Patch.php+26
    define(): Declaration of case-insensitive constants is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/safly-curl-patch/SaFly-Curl-Patch.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: openbsd, error, connection, ipv6, curl...

safly-curl-patch/SaFly-Curl-Patch.php 92% from 13 tests

The entry point to "SaFly Curl Patch" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("safly-curl-patch.php" instead of "SaFly-Curl-Patch.php")

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
Success! There were no dangerous files found in this plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191861

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin