84% simple-proxy

Code Review | Simple Proxy

WordPress plugin Simple Proxy scored84%from 54 tests.

About plugin

  • Plugin page: simple-proxy
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8
  • WordPress version: 6.3.1
  • First release: Dec 12, 2013
  • Latest release: Dec 12, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: gpriday (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,242 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.01MB] [CPU: ▼7.87ms] Passed 4 tests

An overview of server-side resources used by Simple Proxy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.15 ▲1.53
Dashboard /wp-admin3.33 ▼0.0246.97 ▼16.57
Posts /wp-admin/edit.php3.38 ▲0.0246.73 ▲1.61
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.99 ▼18.05
Media Library /wp-admin/upload.php3.25 ▲0.0237.94 ▲2.39
Simple Proxy /wp-admin/options-general.php?page=so-simple-proxy3.2231.57

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Simple Proxy: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲7214.35 ▼0.031.81 ▲0.0944.67 ▲4.94
Dashboard /wp-admin2,196 ▲195.52 ▼0.0188.35 ▼2.8240.32 ▲1.69
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0533.45 ▼2.0536.29 ▼0.91
Add New Post /wp-admin/post-new.php1,539 ▲1318.47 ▼5.00635.53 ▼29.9469.30 ▲8.22
Media Library /wp-admin/upload.php1,404 ▲14.21 ▼0.0195.75 ▼5.1144.15 ▲3.21
Simple Proxy /wp-admin/options-general.php?page=so-simple-proxy8242.0023.0125.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-proxy/simple-proxy.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: proxy

simple-proxy/simple-proxy.php Passed 13 tests

The principal PHP file in "Simple Proxy" v. 1.0 is loaded by WordPress automatically on each request
74 characters long description:
A very simple proxy. Useful when you're moving from one server to another.

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

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin