83% proxy-b-movement

Code Review | Proxy B Movement

WordPress plugin Proxy B Movement scored83%from 54 tests.

About plugin

  • Plugin page: proxy-b-movement
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-4.1
  • WordPress version: 6.3.1
  • First release: Feb 11, 2015
  • Latest release: Feb 15, 2015
  • Number of updates: 63
  • Update frequency: every 0.1 days
  • Top authors: Rupesh Mandal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Proxy B Movement
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.51 ▼1.96
Dashboard /wp-admin3.31 ▼0.0449.11 ▼15.55
Posts /wp-admin/edit.php3.36 ▲0.0046.66 ▲0.22
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.10 ▲9.30
Media Library /wp-admin/upload.php3.23 ▲0.0044.18 ▲7.44

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Proxy B Movement
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.161.81 ▲0.0744.38 ▲7.32
Dashboard /wp-admin2,195 ▲155.65 ▼0.0191.74 ▼2.3638.21 ▼4.75
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0737.15 ▲3.1231.84 ▼2.88
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.20673.53 ▲52.2750.26 ▼7.22
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.05101.40 ▼4.8042.06 ▼3.70

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× 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/proxy-b-movement/proxyb.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/proxy-b-movement/js/proxyb.php:14

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: There are too many tags (22 tag instead of maximum 10)
  • Donate link: Invalid URI ("")
You can look at the official readme.txt

proxy-b-movement/proxyb.php 85% from 13 tests

Analyzing the main PHP file in "Proxy B Movement" version 1.2
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("proxy-b-movement.php" instead of "proxyb.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 211 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected42 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript121028
PHP262814

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin