84% ignore-proxy-accesses

Code Review | Ignore proxy accesses

WordPress plugin Ignore proxy accesses scored84%from 54 tests.

About plugin

  • Plugin page: ignore-proxy-acce...
  • Plugin version: 0.3.2.1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 10, 2014
  • Latest release: Mar 15, 2014
  • Number of updates: 12
  • Update frequency: every 5.3 days
  • Top authors: meganeland (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /661 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by Ignore proxy accesses
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.88 ▼2.56
Dashboard /wp-admin3.31 ▲0.0146.64 ▼0.63
Posts /wp-admin/edit.php3.36 ▲0.0044.27 ▼2.01
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.15 ▼9.29
Media Library /wp-admin/upload.php3.23 ▲0.0034.69 ▲2.34

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Ignore proxy accesses: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▼0.041.70 ▲0.0937.53 ▼3.89
Dashboard /wp-admin2,195 ▲275.51 ▼0.2081.71 ▼5.2740.24 ▼2.23
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0234.28 ▼1.8732.19 ▼4.28
Add New Post /wp-admin/post-new.php1,526 ▼1123.02 ▲4.69688.10 ▲62.8551.50 ▼9.91
Media Library /wp-admin/upload.php1,403 ▲64.20 ▼0.0093.31 ▼6.1142.75 ▼0.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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ignore-proxy-accesses/ignore_proxy_accesses.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: Contributors not specified
You can look at the official readme.txt

ignore-proxy-accesses/ignore_proxy_accesses.php 92% from 13 tests

The entry point to "Ignore proxy accesses" version 0.3.2.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ignore-proxy-accesses.php" instead of "ignore_proxy_accesses.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
Good job! No executable or dangerous file extensions detected63 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161363

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code1.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%
Functions0
▷ Named functions00.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 files were detected