94% ads-into-post

Code Review | Ads Into Post

WordPress plugin Ads Into Post scored 94% from 54 tests.

About plugin

  • Plugin page: ads-into-post
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Nov 9, 2017
  • Latest release: Nov 24, 2017
  • Number of updates: 22
  • Update frequency: every 0.7 days
  • Top authors: eaxjp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 624 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼287.13ms] Passed 4 tests

A check of server-side resources used by Ads Into Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.06139.64 ▲86.39
Dashboard /wp-admin4.09 ▲0.0639.08 ▼4.25
Posts /wp-admin/edit.php4.38 ▲0.0643.03 ▼3.78
Add New Post /wp-admin/post-new.php7.62 ▲0.03105.78 ▼1,145.40
Media Library /wp-admin/upload.php4.03 ▲0.0632.46 ▲4.93
Ads Into Post /wp-admin/options-general.php?page=aip3_menu4.0029.50

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Ads Into Post
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,791 ▲6915.87 ▲0.336.33 ▲0.772.63 ▲0.36
Dashboard /wp-admin2,897 ▲366.27 ▲0.13127.92 ▼4.47164.50 ▲0.50
Posts /wp-admin/edit.php2,693 ▲73.24 ▲0.0062.12 ▼5.81150.22 ▼41.19
Add New Post /wp-admin/post-new.php1,669 ▲320.41 ▲0.08458.65 ▼0.38203.44 ▲32.61
Media Library /wp-admin/upload.php1,700 ▲55.51 ▲0.01154.01 ▲13.09222.21 ▼15.12
Ads Into Post /wp-admin/options-general.php?page=aip3_menu1,0862.3854.70121.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ads-into-post/ads-into-post.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected


Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
You can take inspiration from this readme.txt

ads-into-post/ads-into-post.php 92% from 13 tests

The principal PHP file in "Ads Into Post" v. 1.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected359 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
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 functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There were not PNG files found in your plugin