10% reseller-connection-for-oxxa

Code Review | Reseller Connection for OXXA.com

WordPress plugin Reseller Connection for OXXA.com scored10%from 54 tests.

About plugin

  • Plugin page: reseller-connecti...
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.3
  • WordPress version: 6.3.1
  • First release: Aug 12, 2015
  • Latest release: Mar 24, 2019
  • Number of updates: 9
  • Update frequency: every 146.8 days
  • Top authors: vlijmen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /721 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/reseller-connection-for-oxxa/reseller-connection-for-oxxa.php+170
    syntax error, unexpected '}', expecting end of file

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

Server-side resources used by Reseller Connection for OXXA.com
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.40 ▲0.13
Dashboard /wp-admin3.31 ▲0.0046.86 ▼5.78
Posts /wp-admin/edit.php3.36 ▲0.0049.37 ▲6.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.82 ▼15.02
Media Library /wp-admin/upload.php3.23 ▲0.0035.03 ▲0.11

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Reseller Connection for OXXA.com
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.30 ▼1.351.83 ▲0.2637.15 ▼1.50
Dashboard /wp-admin2,209 ▲185.84 ▼0.1198.26 ▼8.7940.75 ▲2.33
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0838.40 ▼1.9234.77 ▼0.75
Add New Post /wp-admin/post-new.php1,533 ▼923.11 ▲4.79685.36 ▲80.5453.40 ▲2.59
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.1194.34 ▼1.4141.99 ▼3.17

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/reseller-connection-for-oxxa/rcfo-domain-price-list.php
    • > /wp-content/plugins/reseller-connection-for-oxxa/rcfo-functions.php
    • > /wp-content/plugins/reseller-connection-for-oxxa/rcfo-pagelist.php
    • > /wp-content/plugins/reseller-connection-for-oxxa/rcfo-check-widget.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/reseller-connection-for-oxxa/reseller-connection-for-oxxa.php on line 170

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, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === reseller-connection-for-oxxa === )
Please take inspiration from this readme.txt

reseller-connection-for-oxxa/reseller-connection-for-oxxa.php Passed 13 tests

The main PHP file in "Reseller Connection for OXXA.com" ver. 0.0.2 adds more information about the plugin and also serves as the entry point for this plugin
122 characters long description:
Reseller Connection for OXXA.com let's your users manage their domainnames with their Wordpress website profile and login.

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
No dangerous file extensions were detected456 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP56710345
PO File1132248111

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions21
▷ Named functions21100.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 files were detected