62% evalor

Code Review | eValor for WordPress

WordPress plugin eValor for WordPress scored62%from 54 tests.

About plugin

  • Plugin page: evalor
  • Plugin version: v1.6.10...
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2014
  • Latest release: Jul 1, 2019
  • Number of updates: 31
  • Update frequency: every 61.9 days
  • Top authors: apeschar (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,635 total downloads

Benchmarks

Plugin footprint 65% 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.08MB] [CPU: ▼4.35ms] Passed 4 tests

Server-side resources used by eValor for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0945.03 ▲1.30
Dashboard /wp-admin3.39 ▲0.0850.59 ▼1.33
Posts /wp-admin/edit.php3.50 ▲0.1456.13 ▲7.12
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.76 ▼16.10
Media Library /wp-admin/upload.php3.31 ▲0.0838.62 ▼1.26
eValor /wp-admin/options-general.php?page=evalor3.3339.27

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: 1 new table, 6 new options
New tables
wp_evalor_invite_error
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

eValor for WordPress: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▲0.041.77 ▼0.0946.15 ▲3.22
Dashboard /wp-admin2,199 ▲225.63 ▼0.0290.03 ▼10.6239.68 ▼4.80
Posts /wp-admin/edit.php2,104 ▲41.97 ▼0.0440.77 ▲2.3936.73 ▼0.08
Add New Post /wp-admin/post-new.php1,529 ▲323.03 ▲0.06691.51 ▼28.0956.92 ▲2.14
Media Library /wp-admin/upload.php1,407 ▲44.21 ▼0.06101.95 ▼5.1147.50 ▼1.72
eValor /wp-admin/options-general.php?page=evalor9972.1623.6827.72

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_evalor_invite_error
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=evalor
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=evalor
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 0% 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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/evalor/common/init.php
    • > /wp-content/plugins/evalor/evalor.php
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WebwinkelKeurCommon' not found in wp-content/plugins/evalor/common/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/evalor/options.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WebwinkelKeurAdminCommon' not found in wp-content/plugins/evalor/admin.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WebwinkelKeurFrontendCommon' not found in wp-content/plugins/evalor/frontend.php:3
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/evalor/common/sidebar.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/evalor/common/vendor/Peschar/URLRetrieverTest.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WebwinkelKeurCommon' not found in wp-content/plugins/evalor/common/frontend.php:3
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/evalor/common/sidebar.php on line 3
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/evalor/common/sidebar.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WebwinkelKeurCommon' not found in wp-content/plugins/evalor/common/woocommerce.php:5

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: evalor, woocommerce, review, sidebar, sello...

evalor/evalor.php 85% from 13 tests

The main PHP script in "eValor for WordPress" version v1.6.10... is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 532 characters long)
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "v1.6.10...")

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 detected981 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP1413925760
PO File272154221

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity8.83
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes216.67%
▷ Concrete classes1083.33%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods2856.00%
▷ Protected methods918.00%
▷ Private methods1326.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin