84% adrotate-email-add-on

Code Review | AdRotater Email Ad Reports

WordPress plugin AdRotater Email Ad Reports scored84%from 54 tests.

About plugin

  • Plugin page: adrotate-email-ad...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • 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,610 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.56ms] Passed 4 tests

An overview of server-side resources used by AdRotater Email Ad Reports
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.11 ▼6.39
Dashboard /wp-admin3.32 ▲0.0146.68 ▼12.38
Posts /wp-admin/edit.php3.37 ▲0.0151.05 ▲1.80
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.93 ▼0.94
Media Library /wp-admin/upload.php3.24 ▲0.0134.58 ▲1.47

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: 1 new table, 12 new options
New tables
wp_adsmeta
New WordPress options
widget_theysaidso_widget
dsp_subject
theysaidso_admin_options
can_compress_scripts
dsp_cc
dsp_email_template
dsp_from_email
widget_recent-posts
widget_recent-comments
db_upgraded
...

Browser metrics Passed 4 tests

A check of browser resources used by AdRotater Email Ad Reports
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.40 ▼1.271.77 ▼0.2139.54 ▼4.44
Dashboard /wp-admin2,206 ▲155.86 ▲0.97108.41 ▼5.8343.05 ▼3.49
Posts /wp-admin/edit.php2,089 ▲32.04 ▼0.0139.71 ▲4.3634.38 ▼1.62
Add New Post /wp-admin/post-new.php1,533 ▼123.34 ▲0.09618.03 ▼56.0562.24 ▼0.87
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0593.57 ▼16.2141.32 ▼6.35

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > 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 a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Requires at least: Invalid version format
  • Tags: There are too many tags (33 tag instead of maximum 10)
You can take inspiration from this readme.txt

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

The principal PHP file in "AdRotater Email Ad Reports" v. 1.1.0 is loaded by WordPress automatically on each request
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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin628 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP11172422628

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin