84% autoads-premiere

Code Review | AutoAds Premiere

WordPress plugin AutoAds Premiere scored 84% from 54 tests.

About plugin

  • Plugin page: autoads-premiere
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5.3
  • WordPress version: 5.9.2
  • First release: Dec 18, 2019
  • Latest release: Nov 19, 2020
  • Number of updates: 46
  • Update frequency: every 7.7 days
  • Top authors: wutime (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 517 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: ▼296.59ms] Passed 4 tests

This is a short check of server-side resources used by AutoAds Premiere
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.69 ▲5.10
Dashboard /wp-admin3.42 ▲0.0132.20 ▼2.86
Posts /wp-admin/edit.php3.65 ▲0.0137.87 ▲0.05
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.21 ▼1,188.33
Media Library /wp-admin/upload.php3.30 ▲0.0129.44 ▲4.79
AutoAds Premiere /wp-admin/options-general.php?page=autoads_premiere3.2521.95

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options
autoads_premiere_plugin_version

Browser metrics Passed 4 tests

AutoAds Premiere: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲4616.25 ▲0.635.80 ▼0.282.31 ▲0.08
Dashboard /wp-admin2,894 ▲336.07 ▼0.11114.39 ▼17.53152.63 ▼7.52
Posts /wp-admin/edit.php2,690 ▲23.24 ▲0.0160.21 ▼2.85140.86 ▲1.55
Add New Post /wp-admin/post-new.php1,720 ▼5321.14 ▼0.11437.84 ▲1.39156.70 ▼0.25
Media Library /wp-admin/upload.php1,703 ▲55.55 ▲0.04142.53 ▲3.81186.81 ▲1.09
AutoAds Premiere /wp-admin/options-general.php?page=autoads_premiere1,1682.3954.49114.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • autoads_premiere_plugin_version

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=autoads_premiere
    • > Notice in wp-content/plugins/autoads-premiere/autoads-premiere.php+272
    Trying to access array offset on value of type bool

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: ad-solutions, adsense, adverts, google adsense, advertisements

autoads-premiere/autoads-premiere.php Passed 13 tests

The principal PHP file in "AutoAds Premiere" v. 1.2.1 is loaded by WordPress automatically on each request
89 characters long description:
This plugin allows you to quickly add AutoAds to your website. Install, Activate, Profit!

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

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/banner-772x250.png32.11KB12.70KB▼ 60.47%