10% yepty

Code Review | Yepty - Pay Per Click Advertising. Monetize Blog and SkyRocket Income with Relevant Contextual Ads

WordPress plugin Yepty - Pay Per Click Advertising. Monetize Blog and SkyRocket Income with Relevant Contextual Ads scored10%from 54 tests.

About plugin

  • Plugin page: yepty
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.4.1
  • WordPress version: 6.3.1
  • First release: May 4, 2012
  • Latest release: Sep 3, 2012
  • Number of updates: 12
  • Update frequency: every 20.3 days
  • Top authors: Zettalab (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /8,801 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/yepty/YeptyError.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; YeptyErrorReporter has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.87ms] Passed 4 tests

A check of server-side resources used by Yepty - Pay Per Click Advertising. Monetize Blog and SkyRocket Income with Relevant Contextual Ads
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.49 ▼38.66
Dashboard /wp-admin2.08 ▼1.225.93 ▼38.11
Posts /wp-admin/edit.php2.08 ▼1.275.65 ▼43.68
Add New Post /wp-admin/post-new.php2.08 ▼3.819.35 ▼91.03
Media Library /wp-admin/upload.php2.08 ▼1.155.48 ▼34.71
Yepty /wp-admin/options-general.php?page=yepty-menu2.086.35

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 90 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Yepty - Pay Per Click Advertising. Monetize Blog and SkyRocket Income with Relevant Contextual Ads: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.35 ▼1.265.31 ▲3.2438.06 ▼4.77
Dashboard /wp-admin2,213 ▲254.84 ▼1.06107.19 ▲2.2640.74 ▲0.10
Posts /wp-admin/edit.php2,090 ▲12.02 ▼0.0139.65 ▼1.0335.23 ▲1.46
Add New Post /wp-admin/post-new.php1,517 ▼1717.63 ▼5.72659.63 ▼36.1645.03 ▼10.96
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0495.49 ▼13.5743.83 ▼3.43
Yepty /wp-admin/options-general.php?page=yepty-menu6,0285.04145.69136.52

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/yepty/YeptyError.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; YeptyErrorReporter has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > POST request to /wp-admin/admin-ajax.php?action=yepty_on_form_request
    • > Deprecated in wp-content/plugins/yepty/YeptyError.php+3
    Methods with the same name as their class will not be constructors in a future version of PHP; YeptyErrorReporter has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > POST request to /wp-admin/admin-ajax.php?action=yepty_on_form_request
    • > Deprecated in wp-content/plugins/yepty/YeptyWidget.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; YeptyWidget has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > POST request to /wp-admin/admin-ajax.php?action=yepty_on_form_request
    • > Deprecated in wp-content/plugins/yepty/YeptyAdmin.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; YeptyAdmin has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > POST request to /wp-admin/admin-ajax.php?action=yepty_on_form_request
    • > Deprecated in wp-content/plugins/yepty/YeptyView.php+2
    Methods with the same name as their class will not be constructors in a future version of PHP; YeptyView has a deprecated constructor
  • 80 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > POST request to /wp-admin/admin-ajax.php?action=yepty_on_form_request
    • > Deprecated in wp-content/plugins/yepty/YeptyJson.php+325
    Array and string offset access syntax with curly braces is deprecated
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > POST request to /wp-admin/admin-ajax.php?action=yepty_on_form_request
    • > Deprecated in wp-content/plugins/yepty/YeptyJson.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; YeptyJson has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > POST request to /wp-admin/admin-ajax.php?action=yepty_on_form_request
    • > Deprecated in wp-content/plugins/yepty/YeptyJson.php+358
    Methods with the same name as their class will not be constructors in a future version of PHP; YeptyJson_Error has a deprecated constructor
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > POST request to /wp-admin/admin-ajax.php?action=yepty_on_form_request
    • > Notice in wp-content/plugins/yepty/yepty.php+51
    Only variables should be passed by reference
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > Notice in wp-content/plugins/yepty/templates/adZonesConstructor.phtml+410
    Undefined index: bcol

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
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'YeptyMain' not found in wp-content/plugins/yepty/YeptyView.php:2
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/yepty/YeptyMain.php on line 17
    • > PHP Notice
      Only variables should be passed by reference in wp-content/plugins/yepty/yepty.php on line 51
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/yepty/YeptyMain.php on line 20
    • > PHP Fatal error
      Uncaught Error: Class 'YeptyMain' not found in wp-content/plugins/yepty/YeptyAdmin.php:2
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/yepty/YeptyMain.php on line 20
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/yepty/YeptyMain.php on line 17
    • > PHP Notice
      Only variables should be passed by reference in wp-content/plugins/yepty/yepty.php on line 51
    • > PHP Fatal error
      Uncaught Error: Class 'YeptyMain' not found in wp-content/plugins/yepty/YeptyWidget.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/yepty/yepty.php:52

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > Network (severe)
    http://heartcode-canvasloader.googlecode.com/files/heartcode-canvasloader-min-0.9.js - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > Javascript (severe) in unknown
    /wp-admin/js/common.min.js?ver=6.3.1 1:6139 Uncaught TypeError: W(...).on is not a function
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > Javascript (severe) in unknown
    /wp-includes/js/heartbeat.min.js?ver=6.3.1 1:5086 Uncaught TypeError: i.on is not a function
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > Javascript (severe) in unknown
    /wp-includes/js/wp-auth-check.min.js?ver=6.3.1 1:502 Uncaught TypeError: i(...).on is not a function
    • > GET request to /wp-admin/options-general.php?page=yepty-menu
    • > Javascript (severe) in unknown
    /wp-admin/js/common.min.js?ver=6.3.1 1:3796 Uncaught TypeError: W(...).on is not a function

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: You are using too many tags: 38 tag instead of maximum 10
  • Screenshots: Add images for these screenshots: #1 (Plugin page overview (Content integrated ads).), #2 (Plugin page overview (Static Ad Units).), #3 (In-text customization.), #4 (In-Image customization.), #5 (Slider Advertising demo.), #6 (In-Image Advertising demo.), #7 (In-text Advertising demo.), #8 (Ad-line Advertising demo.), #9 (Text Ads Advertising demo.), #10 (Tag-Cloud Advertising demo.), #11 (Related Tags Advertising demo.)
You can take inspiration from this readme.txt

yepty/yepty.php 92% from 13 tests

The main PHP script in "Yepty - Pay Per Click Advertising. Monetize Blog and SkyRocket Income with Relevant Contextual Ads" version 1.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: A good plugin description is longer than 10 characters (currently 6 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6,166 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP14161293,015
JavaScript111641852,809
CSS31122342

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity46.14
▷ Minimum class complexity1.00
▷ Maximum class complexity115.00
Average method complexity5.94
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods64
▷ Static methods00.00%
▷ Public methods64100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
42 PNG files occupy 1.43MB with 0.42MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/smallyepty.png3.00KB0.47KB▼ 84.26%
js/farbtastic/mask.png1.97KB4.18KB0.00%
screenshot-2.png170.30KB61.71KB▼ 63.76%
js/farbtastic/marker.png0.64KB0.71KB0.00%
img/tweet.png1.15KB1.22KB0.00%