68% ezoic-integration

Code Review | Ezoic

WordPress plugin Ezoic scored68%from 54 tests.

About plugin

  • Plugin page: ezoic-integration
  • Plugin version: 2.9.2
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 20, 2018
  • Latest release: Nov 20, 2023
  • Number of updates: 340
  • Update frequency: every 6.0 days
  • Top authors: ezoic (100%)

Code review

54 tests

User reviews

47 reviews

Install metrics

20,000+ active /1,375,715 total downloads

Benchmarks

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

Analyzing server-side resources used by Ezoic
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.77 ▲0.36
Dashboard /wp-admin3.31 ▲0.0146.36 ▲1.06
Posts /wp-admin/edit.php3.36 ▲0.0046.25 ▲0.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.36 ▼7.07
Media Library /wp-admin/upload.php3.24 ▲0.0034.62 ▲1.23

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 128 new files
Database: 1 new table, 9 new options
New tables
wp_ezoic_endpoints
New WordPress options
widget_recent-comments
can_compress_scripts
ezoic_db_version
db_upgraded
ez_ad_integration_enabled
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
ez_adtester_config

Browser metrics Passed 4 tests

Checking browser requirements for Ezoic
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.67 ▲0.301.67 ▼0.1844.66 ▲1.26
Dashboard /wp-admin2,198 ▲235.59 ▼0.0793.95 ▼15.5541.94 ▲1.62
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0738.88 ▲4.1237.33 ▼0.14
Add New Post /wp-admin/post-new.php1,526 ▼1222.91 ▼0.26595.17 ▼53.6952.80 ▼0.89
Media Library /wp-admin/upload.php1,394 ▼64.14 ▲0.0096.61 ▼1.8341.87 ▲1.34

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_ezoic_endpoints
  • This plugin does not fully uninstall, leaving 9 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • ez_adtester_config
    • can_compress_scripts
    • widget_theysaidso_widget
    • ez_ad_integration_enabled
    • ezoic_db_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 5× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ezoic-integration/admin/partials/ezoic-integration-admin-display-adstxtmanager.php
    • > /wp-content/plugins/ezoic-integration/public/partials/ezoic-integration-public-display.php
    • > /wp-content/plugins/ezoic-integration/admin/partials/ezoic-integration-admin-display-cdn.php
    • > /wp-content/plugins/ezoic-integration/admin/partials/ezoic-integration-admin-display.php
    • > /wp-content/plugins/ezoic-integration/ezoic-cache-handle/ezoic-handle-cache.php
  • 35× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Ezoic_Namespace\\Ezoic_Feature' not found in wp-content/plugins/ezoic-integration/includes/adpos/class-ezoic-adpos.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Ezoic_Namespace\\Ezoic_AdTester_Inserter' not found in wp-content/plugins/ezoic-integration/includes/adtester/class-ezoic-adtester-native-inserter.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Ezoic_Namespace\\iAdsTxtManager_Solution' not found in wp-content/plugins/ezoic-integration/includes/adstxtmanager/class-ezoic-adstxtmanager-file-modifier.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Ezoic_Namespace\\plugin_dir_path() in wp-content/plugins/ezoic-integration/includes/class-ezoic-integration-deactivator.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Ezoic_Namespace\\plugin_dir_path() in wp-content/plugins/ezoic-integration/admin/class-ezoic-integration-settings.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Ezoic_Namespace\\Ezoic_Content_Export' not found in wp-content/plugins/ezoic-integration/includes/content/emote/class-ezoic-emote-export.php:14
    • > PHP Notice
      Undefined variable: type in wp-content/plugins/ezoic-integration/admin/partials/ezoic-integration-admin-display-adstxtmanager.php on line 42
    • > PHP Fatal error
      Uncaught Error: Class 'Ezoic_Namespace\\Ezoic_Feature' not found in wp-content/plugins/ezoic-integration/includes/adtester/class-ezoic-adtester.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Ezoic_Namespace\\Ezoic_Feature' not found in wp-content/plugins/ezoic-integration/includes/adpos/class-ezoic-adpos.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Ezoic_Namespace\\Ezoic_Feature' not found in wp-content/plugins/ezoic-integration/includes/content/cms/class-ezoic-cms.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

ezoic-integration/ezoic-integration.php 92% from 13 tests

The main PHP script in "Ezoic" version 2.9.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 193 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected19,611 lines of code in 118 files:
LanguageFilesBlank linesComment linesLines of code
PHP1103,1747,56319,445
CSS33011157
Markdown1005
JSON2002
JavaScript2012

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity31.54
▷ Minimum class complexity1.00
▷ Maximum class complexity582.00
Average method complexity3.91
▷ Minimum method complexity1.00
▷ Maximum method complexity59.00
Code structure
Namespaces2
Interfaces10
Traits0
Classes114
▷ Abstract classes76.14%
▷ Concrete classes10793.86%
▷ Final classes00.00%
Methods1,294
▷ Static methods24018.55%
▷ Public methods1,02379.06%
▷ Protected methods987.57%
▷ Private methods17313.37%
Functions91
▷ Named functions3235.16%
▷ Anonymous functions5964.84%
Constants63
▷ Global constants3352.38%
▷ Class constants3047.62%
▷ Public constants30100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/img/ezoic-logo.png7.14KB3.20KB▼ 55.19%