83% reverse-proxy

Code Review | Boost site performance with Reverse Proxy

WordPress plugin Boost site performance with Reverse Proxy scored83%from 54 tests.

About plugin

  • Plugin page: reverse-proxy
  • Plugin version: 1.1.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-6.3
  • WordPress version: 6.3.1
  • First release: May 24, 2022
  • Latest release: Aug 24, 2023
  • Number of updates: 9
  • Update frequency: every 51.3 days
  • Top authors: ashwinixecurify (77.78%)kaushikdaspute (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,387 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼10.18ms] Passed 4 tests

Analyzing server-side resources used by Boost site performance with Reverse Proxy
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1143.27 ▼2.10
Dashboard /wp-admin3.42 ▲0.0754.04 ▼7.73
Posts /wp-admin/edit.php3.54 ▲0.1849.34 ▼6.67
Add New Post /wp-admin/post-new.php6.00 ▲0.1186.20 ▼24.20
Media Library /wp-admin/upload.php3.35 ▲0.1140.23 ▲3.02

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Boost site performance with Reverse Proxy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3314.39 ▲0.011.85 ▼0.2644.02 ▲1.62
Dashboard /wp-admin2,198 ▲245.66 ▲0.0383.09 ▼8.1574.43 ▲34.25
Posts /wp-admin/edit.php2,118 ▲212.00 ▼0.0534.91 ▼4.7431.54 ▼4.22
Add New Post /wp-admin/post-new.php1,544 ▲1823.26 ▲5.81759.83 ▲62.5864.82 ▲6.35
Media Library /wp-admin/upload.php1,415 ▲184.11 ▼0.1599.57 ▼20.8386.09 ▲36.40

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reverse-proxy/class-mo-reverse-proxy-loader.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: url rewriting, file restriction, ip restriction, cors, boost site speed...

reverse-proxy/miniorange-reverse-proxy.php 85% from 13 tests

"Boost site performance with Reverse Proxy" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 174 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("reverse-proxy.php" instead of "miniorange-reverse-proxy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin6,338 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS42,046344,833
PHP511125818
SVG100685
JavaScript20142

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity8.50
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2596.15%
▷ Protected methods00.00%
▷ Private methods13.85%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.68MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
resources/images/miniorange.png0.44KB0.35KB▼ 18.61%
resources/images/ip_restriction.png96.52KB36.37KB▼ 62.32%
resources/images/cors.png98.32KB36.87KB▼ 62.50%
resources/images/flags16.png61.80KB19.90KB▼ 67.79%
resources/images/logo.png2.84KB1.59KB▼ 44.03%