78% wp-ads-auto-post

Code Review | WP Auto Post ADS

WordPress plugin WP Auto Post ADS scored 78% from 54 tests.

About plugin

  • Plugin page: wp-ads-auto-post
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.3
  • WordPress version: 5.9.2
  • First release: Sep 28, 2010
  • Latest release: Jan 4, 2012
  • Number of updates: 18
  • Update frequency: every 25.7 days
  • Top authors: jodacame (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 9,964 total downloads

Benchmarks

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 gracefully, with no errors

Server metrics [RAM: ▼1.22MB] [CPU: ▼355.62ms] Passed 4 tests

An overview of server-side resources used by WP Auto Post ADS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0559.66 ▲6.52
Dashboard /wp-admin3.11 ▼0.3021.00 ▼20.64
Posts /wp-admin/edit.php3.11 ▼0.5320.23 ▼25.98
Add New Post /wp-admin/post-new.php3.11 ▼3.8619.55 ▼1,366.30
Media Library /wp-admin/upload.php3.11 ▼0.1822.99 ▼9.55

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, no new options
New tables
wp_wp_ads_auto_post

Browser metrics Passed 4 tests

An overview of browser requirements for WP Auto Post ADS
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2415.77 ▼0.186.14 ▲0.162.13 ▲0.20
Dashboard /wp-admin2,897 ▲366.08 ▼0.07118.12 ▼20.84158.54 ▼35.23
Posts /wp-admin/edit.php2,696 ▲53.24 ▲0.0066.04 ▲2.76139.22 ▼9.97
Add New Post /wp-admin/post-new.php1,714 ▲2421.77 ▲1.03454.64 ▲8.20185.59 ▲26.31
Media Library /wp-admin/upload.php1,703 ▲55.50 ▼0.02147.56 ▼6.69190.49 ▼11.83
WP ADS Auto Post /wp-admin/wp_ads_auto_post.php260.940.0329.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5600
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ads-auto-post/wp_ads_auto_post.php:87

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/wp_ads_auto_post.php
    • > Network (severe)
    wp-admin/wp_ads_auto_post.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: publicidad, ads, adsense

wp-ads-auto-post/wp_ads_auto_post.php 85% from 13 tests

The primary PHP file in "WP Auto Post ADS" version 1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-ads-auto-post.php" instead of "wp_ads_auto_post.php")
  • Description: The description should be shorter than 140 characters (currently 182 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected286 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
HTML2390205
PHP120962
CSS10019

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.09
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
template/images/layer-resize.png0.56KB0.44KB▼ 22.18%
template/images/application-javascript.png1.84KB1.70KB▼ 7.54%
template/images/arrow-move.png0.65KB0.46KB▼ 29.41%
template/images/preview.png1.35KB1.37KB0.00%
template/images/user.png0.69KB0.77KB0.00%