90% urlfreezer

Code Review | URL Freezer

WordPress plugin URL Freezer scored90%from 54 tests.

About plugin

  • Plugin page: urlfreezer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Dec 1, 2021
  • Latest release: Dec 1, 2021
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: urlfreezer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /335 total downloads

Benchmarks

Plugin footprint 82% 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: ▼4.05ms] Passed 4 tests

Analyzing server-side resources used by URL Freezer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.91 ▲0.28
Dashboard /wp-admin3.34 ▲0.0351.08 ▼1.99
Posts /wp-admin/edit.php3.39 ▲0.0351.48 ▼4.51
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.38 ▼9.97
Media Library /wp-admin/upload.php3.26 ▲0.0340.12 ▲3.17

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

How much does this plugin use your filesystem and database?
Please try to fix the following items
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/urlfreezer/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for URL Freezer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8713.21 ▼0.974.46 ▲2.5542.76 ▲0.10
Dashboard /wp-admin2,251 ▲485.86 ▲0.9298.69 ▼7.7738.10 ▼2.96
Posts /wp-admin/edit.php2,133 ▲332.01 ▲0.0037.00 ▼5.5934.02 ▼5.98
Add New Post /wp-admin/post-new.php1,539 ▲817.69 ▼5.50687.61 ▲59.5260.31 ▲9.07
Media Library /wp-admin/upload.php1,436 ▲364.18 ▼0.02111.97 ▼0.7547.54 ▲2.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

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 Passed 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
4 plugin tags: seo, url check, report, site health

urlfreezer/urlfreezer.php Passed 13 tests

The main file in "URL Freezer" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
40 characters long description:
Integrates URL Freezer with your website

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
Success! There were no dangerous files found in this plugin90 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP314990

PHP code Passed 2 tests

Analyzing 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.25
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods562.50%
▷ Protected methods00.00%
▷ Private methods337.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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