84% evenium

Code Review | Evenium

WordPress plugin Evenium scored84%from 54 tests.

About plugin

  • Plugin page: evenium
  • Plugin version: 1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.0
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Dec 7, 2022
  • Number of updates: 21
  • Update frequency: every 133.1 days
  • Top authors: Evenium (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /6,223 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.85ms] Passed 4 tests

Analyzing server-side resources used by Evenium
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.06 ▼10.33
Dashboard /wp-admin3.33 ▲0.0343.54 ▼6.97
Posts /wp-admin/edit.php3.39 ▲0.0345.83 ▼2.88
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.61 ▼11.20
Media Library /wp-admin/upload.php3.26 ▲0.0335.39 ▲0.87

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Evenium
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.52 ▼0.881.65 ▼0.2339.86 ▼2.52
Dashboard /wp-admin2,219 ▲345.83 ▼0.1397.16 ▼2.2438.15 ▼5.01
Posts /wp-admin/edit.php2,105 ▲162.18 ▲0.1836.16 ▼1.7034.47 ▼2.04
Add New Post /wp-admin/post-new.php6,200 ▲4,66723.92 ▲0.94898.52 ▲245.1654.39 ▼2.06
Media Library /wp-admin/upload.php1,404 ▲224.23 ▼0.0796.12 ▼2.3439.95 ▼3.98

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

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
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/evenium/evenium.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: Please delete some tags, you are using 16 tag instead of maximum 10
The official readme.txt might help

evenium/evenium.php Passed 13 tests

"Evenium" version 1.3.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
28 characters long description:
Evenium Plugin for WordPress

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
Success! There were no dangerous files found in this plugin1,275 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript35229564
PHP63653499
CSS186107
PO File13336105

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity6.83
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.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
6 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/evenium_btn_te_example.png19.31KB5.11KB▼ 73.56%
img/evenium_gutenberg_add_block.png28.34KB9.06KB▼ 68.02%
img/evenium_gutenberg_select_your_event.png23.29KB8.73KB▼ 62.52%
img/evenium_icon.png1.51KB0.72KB▼ 52.71%
img/evenium_manage_event.png4.28KB0.77KB▼ 82.06%