84% proxy-ip-addresses-for-cloudfront-with-wordfence

Code Review | Proxy IP Addresses for Cloudfront with Wordfence

WordPress plugin Proxy IP Addresses for Cloudfront with Wordfence scored84%from 54 tests.

About plugin

  • Plugin page: proxy-ip-addresse...
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.3
  • WordPress version: 6.3.1
  • First release: Jan 21, 2022
  • Latest release: Jan 21, 2022
  • Number of updates: 4
  • Update frequency: every 71.0 days
  • Top authors: emfluencekc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /335 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.71ms] Passed 4 tests

Analyzing server-side resources used by Proxy IP Addresses for Cloudfront with Wordfence
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.16 ▼0.15
Dashboard /wp-admin3.32 ▼0.0349.29 ▼14.32
Posts /wp-admin/edit.php3.37 ▲0.0151.29 ▼0.63
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.70 ▼11.72
Media Library /wp-admin/upload.php3.24 ▲0.0139.91 ▲1.30

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Proxy IP Addresses for Cloudfront with Wordfence
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.23 ▲0.081.74 ▲0.0647.70 ▲4.95
Dashboard /wp-admin2,203 ▲285.63 ▼0.1186.53 ▼16.4840.17 ▼3.29
Posts /wp-admin/edit.php2,090 ▼132.01 ▲0.0333.95 ▼6.5333.02 ▼3.60
Add New Post /wp-admin/post-new.php1,536 ▲1023.16 ▲0.12669.25 ▲44.3452.17 ▼1.51
Media Library /wp-admin/upload.php1,408 ▲54.26 ▲0.02111.13 ▲8.1047.77 ▲3.37

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_next_scheduled() in wp-content/plugins/proxy-ip-addresses-for-cloudfront-with-wordfence/plugin.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: proxy, security, cloudfront, wordfence

proxy-ip-addresses-for-cloudfront-with-wordfence/plugin.php 92% from 13 tests

The entry point to "Proxy IP Addresses for Cloudfront with Wordfence" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("proxy-ip-addresses-for-cloudfront-with-wordfence.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142384

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods114.29%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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 images were found in this plugin