10% simple-openerp7-login

Code Review | Simple OpenErp Login

WordPress plugin Simple OpenErp Login scored10%from 54 tests.

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,173 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Parse error in wp-content/plugins/simple-openerp7-login/include/lib/xmlrpc.inc+583
    syntax error, unexpected 'new' (T_NEW)

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

An overview of server-side resources used by Simple OpenErp Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.60 ▲1.42
Dashboard /wp-admin3.31 ▲0.0048.51 ▼3.46
Posts /wp-admin/edit.php3.36 ▲0.0048.94 ▼0.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.57 ▼25.21
Media Library /wp-admin/upload.php3.23 ▲0.0035.82 ▼0.77

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Simple OpenErp Login: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.75 ▲0.331.72 ▼0.1542.35 ▲0.12
Dashboard /wp-admin2,195 ▲185.58 ▼0.0984.71 ▼4.3439.36 ▼2.76
Posts /wp-admin/edit.php2,100 ▼32.01 ▼0.0141.53 ▲1.2038.42 ▲0.98
Add New Post /wp-admin/post-new.php1,526 ▼3017.54 ▼0.77640.82 ▼0.6553.61 ▲8.76
Media Library /wp-admin/upload.php1,400 ▲64.19 ▼0.0596.51 ▼1.1243.22 ▲2.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • 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
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
  • 4× 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/simple-openerp7-login/Oe-login-base.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_query_arg() in wp-content/plugins/simple-openerp7-login/Oe-login-base-admin.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-openerp7-login/include/OpenErp.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-openerp7-login/include/openerp.class.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === simple-openerp7-login === )
The official readme.txt is a good inspiration

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

The principal PHP file in "Simple OpenErp Login" v. 1.0.4 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("simple-openerp7-login.php" instead of "Oe-login-base.php")

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 detected3,093 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53301,0723,093

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin