78% stage-file-proxy

Code Review | Stage File Proxy

WordPress plugin Stage File Proxy scored 78% from 54 tests.

About plugin

  • Plugin page: stage-file-proxy
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.9.1
  • WordPress version: 6.3.1
  • First release: Dec 13, 2017
  • Latest release: Dec 13, 2017
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: drubage (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active / 9,959 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.44ms] Passed 4 tests

An overview of server-side resources used by Stage File Proxy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.79 ▼5.96
Dashboard /wp-admin3.32 ▲0.0145.48 ▼2.95
Posts /wp-admin/edit.php3.37 ▲0.0147.34 ▲0.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.51 ▼13.41
Media Library /wp-admin/upload.php3.24 ▲0.0137.35 ▲3.37
Stage File Proxy Options /wp-admin/options-general.php?page=stage-file-proxy3.1829.58

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Stage File Proxy
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.28 ▼1.151.61 ▼0.1942.44 ▲1.18
Dashboard /wp-admin2,210 ▲195.86 ▲1.00108.99 ▲5.8539.19 ▼2.12
Posts /wp-admin/edit.php2,093 ▲41.99 ▲0.0239.27 ▲1.9340.34 ▲8.72
Add New Post /wp-admin/post-new.php1,536 ▲323.31 ▼0.06665.08 ▲56.8852.16 ▼6.20
Media Library /wp-admin/upload.php1,392 ▲74.15 ▼0.0794.47 ▼8.4540.88 ▼1.04
Stage File Proxy Options /wp-admin/options-general.php?page=stage-file-proxy8052.0526.8030.00

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

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=stage-file-proxy
    • > Notice in wp-content/plugins/stage-file-proxy/stage-file-proxy.php+73
    Undefined index: source_domain
    • > GET request to /wp-admin/options-general.php?page=stage-file-proxy
    • > Notice in wp-content/plugins/stage-file-proxy/stage-file-proxy.php+82
    Undefined index: method

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stage-file-proxy/stage-file-proxy.php:14

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: development, uploads

stage-file-proxy/stage-file-proxy.php 92% from 13 tests

This is the main PHP file of "Stage File Proxy" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 232 characters long)

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
There were no executable files found in this plugin75 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1193975

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin