94% adrotate-email-add-on

Code Review | AdRotater Email Ad Reports

WordPress plugin AdRotater Email Ad Reports scored 94% from 54 tests.

About plugin

  • Plugin page: adrotate-email-ad...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Dec 9, 2014
  • Latest release: Nov 16, 2017
  • Number of updates: 27
  • Update frequency: every 39.8 days
  • Top authors: xylus (92.59%)Dharm1025 (11.11%)

Code review

54 tests

User reviews

6 reviews

Install metrics

20+ active / 2,277 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.02MB] [CPU: ▼295.31ms] Passed 4 tests

This is a short check of server-side resources used by AdRotater Email Ad Reports
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0154.34 ▲2.07
Dashboard /wp-admin3.41 ▲0.0033.51 ▼0.18
Posts /wp-admin/edit.php3.65 ▲0.0036.74 ▲0.51
Add New Post /wp-admin/post-new.php6.89 ▼0.0993.20 ▼1,179.92
Media Library /wp-admin/upload.php3.30 ▲0.0022.60 ▼1.66

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: 1 new table, 6 new options
New tables
wp_adsmeta
New WordPress options
dsp_subject
dsp_from_email
dsp_from
dsp_email_template
dsp_reply
dsp_cc

Browser metrics Passed 4 tests

AdRotater Email Ad Reports: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4116.25 ▲0.477.49 ▲1.332.54 ▲0.04
Dashboard /wp-admin2,892 ▲386.15 ▼0.04119.21 ▼16.72152.56 ▼3.09
Posts /wp-admin/edit.php2,688 ▼33.25 ▲0.0265.62 ▼1.07139.52 ▼17.73
Add New Post /wp-admin/post-new.php1,661 ▼015.96 ▼0.42430.30 ▲30.17154.38 ▲0.67
Media Library /wp-admin/upload.php1,695 ▼35.49 ▼0.04147.11 ▲2.22187.94 ▲2.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function adrotate_now() in wp-content/plugins/adrotate-email-add-on/admin/adrotate-email-main.php:66

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 33 tag instead of maximum 10
  • Requires at least: Invalid version format
You can take inspiration from this readme.txt

adrotate-email-add-on/adrotate-email-add-on.php Passed 13 tests

The primary PHP file in "AdRotater Email Ad Reports" version 1.1.0 is used by WordPress to initiate all plugin functionality
79 characters long description:
AdRotater Email Ad Reports allow you to send monthly ad reports to advertisers.

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 detected628 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP11172422628

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity5.43
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods25
▷ Static methods520.00%
▷ Public methods2184.00%
▷ Protected methods00.00%
▷ Private methods416.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected