73% evergage

Code Review | Evergage for WordPress

WordPress plugin Evergage for WordPress scored73%from 54 tests.

About plugin

  • Plugin page: evergage
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1.1
  • WordPress version: 6.3.1
  • First release: Jan 8, 2015
  • Latest release: Apr 20, 2015
  • Number of updates: 7
  • Update frequency: every 21.7 days
  • Top authors: john.watts (71.43%)ghinkle (42.86%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /951 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.80MB] [CPU: ▼30.72ms] Passed 4 tests

Server-side resources used by Evergage for WordPress
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0728.43 ▼11.14
Dashboard /wp-admin3.10 ▼0.2433.20 ▼33.49
Posts /wp-admin/edit.php3.24 ▼0.1235.18 ▼14.86
Add New Post /wp-admin/post-new.php3.11 ▼2.7840.14 ▼63.37
Media Library /wp-admin/upload.php3.17 ▼0.0627.17 ▼7.53
Evergage /wp-admin/plugins.php?page=evergage-config3.0826.89

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Evergage for WordPress
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲13313.14 ▼1.175.57 ▲3.6343.94 ▲0.10
Dashboard /wp-admin2,248 ▲605.84 ▲0.03101.18 ▼19.6743.20 ▲0.17
Posts /wp-admin/edit.php2,130 ▲382.02 ▼0.0035.74 ▼0.7136.76 ▲2.05
Add New Post /wp-admin/post-new.php1,563 ▲4022.00 ▼1.26605.64 ▼39.1374.93 ▲15.16
Media Library /wp-admin/upload.php1,430 ▲394.19 ▼0.0298.90 ▼1.4143.99 ▼2.38
Evergage /wp-admin/plugins.php?page=evergage-config8962.1924.0528.99

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
    • > GET request to /wp-admin/plugins.php?page=evergage-config
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

SRP 50% 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 fix the following items
  • 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/evergage/evergage.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/evergage/admin.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/plugins.php?page=evergage-config
    • > Javascript (severe) in unknown
    /wp-content/plugins/evergage/evergage.js?ver=6.3.1 9:51 Uncaught TypeError: Cannot read properties of undefined (reading 'setAccount')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: statistics, stats, personalization, tracking, analytics

evergage/evergage.php Passed 13 tests

The main PHP file in "Evergage for WordPress" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
29 characters long description:
Real-time web personalization

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
There were no executable files found in this plugin520 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP325888490
JavaScript110627
CSS1003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.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 are no PNG files in this plugin