84% bc-simple-auto-ads

Code Review | BC Simple Auto Ads

WordPress plugin BC Simple Auto Ads scored84%from 54 tests.

About plugin

  • Plugin page: bc-simple-auto-ads
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.3
  • WordPress version: 6.3.1
  • First release: Sep 6, 2019
  • Latest release: Sep 7, 2019
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: bc2018 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /650 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼4.63ms] Passed 4 tests

A check of server-side resources used by BC Simple Auto Ads
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2037.15 ▼1.81
Dashboard /wp-admin3.53 ▲0.2246.76 ▼3.06
Posts /wp-admin/edit.php3.64 ▲0.2851.23 ▲4.51
Add New Post /wp-admin/post-new.php6.11 ▲0.2282.42 ▼15.19
Media Library /wp-admin/upload.php3.45 ▲0.2236.15 ▲1.56
Binary Carpenter /wp-admin/admin.php?page=bccomvn_wp_plugins_myn_menu3.4131.40
BC Simple Auto Ads /wp-admin/admin.php?page=bc_simple_auto_ads3.4946.67

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for BC Simple Auto Ads
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲8613.24 ▼1.161.84 ▲0.0440.61 ▼0.88
Dashboard /wp-admin2,238 ▲474.86 ▼1.05107.53 ▲6.7540.41 ▼5.80
Posts /wp-admin/edit.php2,121 ▲292.05 ▼0.0839.04 ▲4.7635.91 ▲4.39
Add New Post /wp-admin/post-new.php1,564 ▲4323.04 ▼0.12657.19 ▼20.1565.41 ▲9.17
Media Library /wp-admin/upload.php1,420 ▲324.19 ▼0.0192.26 ▼5.5141.02 ▼4.32
Binary Carpenter /wp-admin/admin.php?page=bccomvn_wp_plugins_myn_menu7941.9922.9223.03
BC Simple Auto Ads /wp-admin/admin.php?page=bc_simple_auto_ads1,4652.6141.8680.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function BinaryCarpenter\\BC_AA\\add_action() in wp-content/plugins/bc-simple-auto-ads/Initiator.php:34

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: ads, auto ads

bc-simple-auto-ads/Initiator.php 85% from 13 tests

Analyzing the main PHP file in "BC Simple Auto Ads" version 1.0
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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bc-simple-auto-ads.php" instead of "Initiator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin31,149 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27,49174119,296
CSS21383,14610,768
PHP93865121,085

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods72
▷ Static methods2737.50%
▷ Public methods6387.50%
▷ Protected methods00.00%
▷ Private methods912.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants00.00%
▷ Class constants15100.00%
▷ Public constants15100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected