10% simple-openerp61-login

Code Review | Simple OpenErp6.1 Login

WordPress plugin Simple OpenErp6.1 Login scored10%from 54 tests.

About plugin

  • Plugin page: simple-openerp61-...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-3.8
  • WordPress version: 6.3.1
  • First release: Dec 29, 2013
  • Latest release: Mar 1, 2014
  • Number of updates: 12
  • Update frequency: every 5.2 days
  • Top authors: archetipo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /797 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/simple-openerp61-login/include/lib/xmlrpc.inc+583
    syntax error, unexpected 'new' (T_NEW)

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

A check of server-side resources used by Simple OpenErp6.1 Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.35 ▼3.56
Dashboard /wp-admin3.31 ▲0.0060.97 ▲12.72
Posts /wp-admin/edit.php3.36 ▲0.0050.68 ▼2.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.76 ▼0.26
Media Library /wp-admin/upload.php3.23 ▲0.0036.78 ▼0.29

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple OpenErp6.1 Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9014.80 ▲0.421.98 ▼0.2741.94 ▼3.36
Dashboard /wp-admin2,209 ▲214.85 ▼1.01110.74 ▼4.7139.60 ▼3.93
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.1539.76 ▲3.3735.06 ▲4.34
Add New Post /wp-admin/post-new.php1,514 ▼017.71 ▼0.06677.21 ▼15.6851.67 ▼4.96
Media Library /wp-admin/upload.php1,385 ▼04.18 ▼0.1296.85 ▼10.4141.88 ▼4.50

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-openerp61-login/Oe-login-base.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-openerp61-login/include/OpenErp.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/simple-openerp61-login/Oe-login-base-admin.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-openerp61-login/include/openerp.class.php:28

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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: Write the name of your plugin instead of "Plugin Name" on the first line ( === simple-openerp61-login === )
The official readme.txt might help

simple-openerp61-login/Oe-login-base.php 92% from 13 tests

The primary PHP file in "Simple OpenErp6.1 Login" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-openerp61-login.php" instead of "Oe-login-base.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected3,089 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53301,0723,089

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity14.00
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods36
▷ Static methods12.78%
▷ Public methods36100.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin