84% applixir

Code Review | Reward Video Ad for WordPress

WordPress plugin Reward Video Ad for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: applixir
  • Plugin version: 1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Feb 24, 2020
  • Latest release: Mar 28, 2023
  • Number of updates: 13
  • Update frequency: every 87.1 days
  • Top authors: applixir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,013 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼8.36ms] Passed 4 tests

This is a short check of server-side resources used by Reward Video Ad for WordPress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0738.62 ▼9.56
Dashboard /wp-admin3.40 ▲0.0952.10 ▼2.38
Posts /wp-admin/edit.php3.51 ▲0.1551.48 ▼2.51
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.89 ▼18.97
Media Library /wp-admin/upload.php3.32 ▲0.0940.75 ▲3.44

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
applixir_settings
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Reward Video Ad for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,977 ▲21615.71 ▲1.3731.83 ▲30.0336.85 ▼5.61
Dashboard /wp-admin2,225 ▲515.79 ▲0.1096.61 ▼3.1843.53 ▼0.66
Posts /wp-admin/edit.php2,135 ▲382.25 ▲0.2534.61 ▼4.0134.35 ▼2.94
Add New Post /wp-admin/post-new.php1,551 ▲2523.56 ▼0.09689.19 ▲6.1235.79 ▼22.13
Media Library /wp-admin/upload.php1,430 ▲334.39 ▲0.19104.44 ▲1.7643.84 ▼2.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • applixir_settings
    • widget_recent-comments
    • theysaidso_admin_options

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/applixir/inc/settings.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/applixir/inc/class-applixir-restriction.php:12

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 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
2 plugin tags: video ad, reward

applixir/applixir.php Passed 13 tests

The main file in "Reward Video Ad for WordPress" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
28 characters long description:
Reward Video Ads by AppLixir

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected691 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP314674635
JavaScript112656

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity15.00
▷ Minimum class complexity14.00
▷ Maximum class complexity16.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/applixir-logo.png3.12KB2.48KB▼ 20.41%