84% autoads-premiere

Code Review | AutoAds Premiere

WordPress plugin AutoAds Premiere scored84%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: 6.3.1
  • 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 /795 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.85ms] Passed 4 tests

This is a short check of server-side resources used by AutoAds Premiere
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.08 ▼5.32
Dashboard /wp-admin3.35 ▲0.0546.16 ▼3.82
Posts /wp-admin/edit.php3.40 ▲0.0447.03 ▼2.28
Add New Post /wp-admin/post-new.php5.93 ▲0.0485.68 ▼3.96
Media Library /wp-admin/upload.php3.27 ▲0.0438.20 ▲5.56
AutoAds Premiere /wp-admin/options-general.php?page=autoads_premiere3.2131.38

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AutoAds Premiere
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.30 ▼1.081.58 ▼0.2837.20 ▼14.57
Dashboard /wp-admin2,210 ▲195.88 ▼0.03111.05 ▼4.4741.55 ▼3.43
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0140.28 ▲4.5235.37 ▲0.45
Add New Post /wp-admin/post-new.php1,536 ▲1723.31 ▲0.16678.81 ▲15.7465.27 ▲5.17
Media Library /wp-admin/upload.php1,395 ▲44.21 ▼0.03108.82 ▲9.3647.79 ▲3.17
AutoAds Premiere /wp-admin/options-general.php?page=autoads_premiere8992.0226.7125.03

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • autoads_premiere_plugin_version
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: ad-solutions, google adsense, advertisements, adsense, adverts

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

Analyzing the main PHP file in "AutoAds Premiere" version 1.2.1
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin280 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

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.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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions17100.00%
▷ Anonymous functions00.00%
▷ Global constants7100.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.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%