84% evadav

Code Review | Evadav

WordPress plugin Evadav scored84%from 54 tests.

About plugin

  • Plugin page: evadav
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.5
  • WordPress version: 6.3.1
  • First release: Nov 25, 2020
  • Latest release: Feb 1, 2021
  • Number of updates: 4
  • Update frequency: every 20.8 days
  • Top authors: evadav (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

20+ active /1,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Evadav
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.21 ▲0.55
Dashboard /wp-admin3.33 ▲0.0348.98 ▼4.33
Posts /wp-admin/edit.php3.38 ▲0.0350.28 ▲4.92
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.11 ▼17.27
Media Library /wp-admin/upload.php3.26 ▲0.0336.66 ▼0.04

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables
wp_evadav_widgets
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_evadavwidget
widget_theysaidso_widget

Browser metrics Passed 4 tests

Evadav: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲8613.27 ▼1.205.74 ▲3.9643.30 ▼6.20
Dashboard /wp-admin2,218 ▲274.88 ▲0.01102.99 ▼12.2260.02 ▲12.75
Posts /wp-admin/edit.php2,115 ▲232.28 ▲0.2939.04 ▼0.6037.05 ▲3.93
Add New Post /wp-admin/post-new.php1,537 ▲1823.19 ▼0.12657.40 ▼27.1336.93 ▼18.46
Media Library /wp-admin/upload.php1,408 ▲204.48 ▲0.33101.45 ▼13.9965.16 ▲16.80

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_evadavwidget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please fix the following
  • 13× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/evadav/admin/partials/evadav-admin-welcome-page.php
    • > /wp-content/plugins/evadav/includes/class-evadav-helper.php
    • > /wp-content/plugins/evadav/admin/partials/evadav-admin-widget-page.php
    • > /wp-content/plugins/evadav/includes/class-evadav-widget.php
    • > /wp-content/plugins/evadav/admin/class-evadav-admin.php
    • > /wp-content/plugins/evadav/admin/partials/evadav-admin-statistic-page.php
    • > /wp-content/plugins/evadav/includes/class-evadav-deactivator.php
    • > /wp-content/plugins/evadav/evadav-widget.php
    • > /wp-content/plugins/evadav/public/class-evadav-public.php
    • > /wp-content/plugins/evadav/includes/class-evadav-api.php

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: evadav, push, push-notification, monetization, traffic monetization

evadav/evadav.php Passed 13 tests

The main PHP script in "Evadav" version 1.0.0 is automatically included on every request by WordPress
28 characters long description:
Evadav - Monetize your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,046 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP17244871,369
JavaScript23001041,205
CSS13814472

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.30
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods70
▷ Static methods710.00%
▷ Public methods6288.57%
▷ Protected methods00.00%
▷ Private methods811.43%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants18
▷ Global constants211.11%
▷ Class constants1688.89%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/images/menu_icon.png0.34KB0.34KB0.00%