74% appyads

Code Review | AppyAds

WordPress plugin AppyAds scored74%from 54 tests.

About plugin

  • Plugin page: appyads
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2019
  • Latest release: Mar 27, 2019
  • Number of updates: 8
  • Update frequency: every 2.0 days
  • Top authors: appyads (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /706 total downloads


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: ▼1.68MB] [CPU: ▼49.24ms] Passed 4 tests

An overview of server-side resources used by AppyAds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.1610.38 ▼32.48
Dashboard /wp-admin2.33 ▼0.9811.11 ▼38.13
Posts /wp-admin/edit.php2.33 ▼1.039.95 ▼39.81
Add New Post /wp-admin/post-new.php2.33 ▼3.5615.66 ▼86.53
Media Library /wp-admin/upload.php2.33 ▼0.9011.82 ▼21.57

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

AppyAds: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.48 ▲0.131.64 ▼0.0245.25 ▼0.35
Dashboard /wp-admin2,217 ▲375.88 ▲0.2199.00 ▲7.4564.67 ▲20.50
Posts /wp-admin/edit.php2,133 ▲362.21 ▲0.1942.20 ▲4.7137.25 ▲2.23
Add New Post /wp-admin/post-new.php1,539 ▲1123.31 ▲0.16697.34 ▼14.1352.08 ▼7.01
Media Library /wp-admin/upload.php1,430 ▲304.35 ▲0.15104.78 ▼10.4843.48 ▼8.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in AppyAds_Ad is deprecated since version 4.3.0! Use __construct() instead.
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_appyads-ad
    • db_upgraded

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
Good news, no errors were detected

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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appyads/classes/AppyAds_Ad.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/appyads/lib/appyads_library.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/appyads/admin/appyads_admin.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt is a good inspiration

appyads/appyads.php Passed 13 tests

The primary PHP file in "AppyAds" version 1.0.3 is used by WordPress to initiate all plugin functionality
96 characters long description:
An advertising alternative for publishers, media outlets, mobile application and website owners.

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
Good job! No executable or dangerous file extensions detected261 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions15100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.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
12 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/aaspc-160X80.png0.22KB0.13KB▼ 38.57%
img/appyads_logo.png6.33KB4.08KB▼ 35.62%
img/aaspc-180X180.png0.21KB0.11KB▼ 49.77%
img/aaspc-970X250.png0.21KB0.11KB▼ 49.07%
img/aaspc-300X250.png0.22KB0.11KB▼ 51.97%