74% wp-content-pilot

Code Review | WP Content Pilot - Autoblogging & Affiliate Marketing Plugin

WordPress plugin WP Content Pilot - Autoblogging & Affiliate Marketing Plugin scored74%from 54 tests.

About plugin

  • Plugin page: wp-content-pilot
  • Plugin version: 1.3.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 9, 2018
  • Latest release: Aug 19, 2023
  • Number of updates: 96
  • Update frequency: every 21.0 days
  • Top authors: manikmist09 (90.63%)manzurahammed (6.25%)pluginever (3.13%)B-07 (3.13%)

Code review

54 tests

User reviews

36 reviews

Install metrics

3,000+ active /79,031 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.15MB] [CPU: ▼1.25ms] Passed 4 tests

This is a short check of server-side resources used by WP Content Pilot - Autoblogging & Affiliate Marketing Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1645.41 ▲4.35
Dashboard /wp-admin3.50 ▲0.2054.48 ▲1.67
Posts /wp-admin/edit.php3.54 ▲0.1952.60 ▼2.31
Add New Post /wp-admin/post-new.php6.02 ▲0.1396.80 ▼8.71
Media Library /wp-admin/upload.php3.34 ▲0.1144.79 ▲6.13
All Campaigns /wp-admin/edit.php?post_type=wp_content_pilot3.4642.16
Status /wp-admin/edit.php?post_type=wp_content_pilot&page=wpcp-status3.3136.70
Add New /wp-admin/post-new.php?post_type=wp_content_pilot3.4045.05
Logs /wp-admin/edit.php?post_type=wp_content_pilot&page=wpcp-logs3.4640.81
Go Pro /wp-admin/edit.php?post_type=wp_content_pilot&page=go_wpcp_pro3.2026.23

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 115 new files
Database: 2 new tables, 12 new options
New tables
wp_wpcp_links
wp_wpcp_logs
New WordPress options
wpcp_version
wpcp_db_version
widget_recent-posts
wpcp_install_date
wpcp_settings_article
wpcp_dismissible_notices
widget_theysaidso_widget
can_compress_scripts
wpcp_admin_notices
widget_recent-comments
...

Browser metrics Passed 4 tests

An overview of browser requirements for WP Content Pilot - Autoblogging & Affiliate Marketing Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲16013.61 ▼0.661.76 ▲0.2443.33 ▲3.03
Dashboard /wp-admin2,298 ▲1245.91 ▲0.34105.54 ▲11.5788.28 ▲37.41
Posts /wp-admin/edit.php2,221 ▲1212.48 ▲0.5236.39 ▼5.0233.24 ▼7.98
Add New Post /wp-admin/post-new.php1,621 ▲9321.10 ▼1.91807.20 ▲110.3837.19 ▼19.52
Media Library /wp-admin/upload.php1,512 ▲1124.48 ▲0.34114.35 ▲4.7387.40 ▲42.74
All Campaigns /wp-admin/edit.php?post_type=wp_content_pilot1,2042.4434.6234.65
Status /wp-admin/edit.php?post_type=wp_content_pilot&page=wpcp-status8982.0129.0426.66
Add New /wp-admin/post-new.php?post_type=wp_content_pilot1,1832.6849.3669.79
Logs /wp-admin/edit.php?post_type=wp_content_pilot&page=wpcp-logs1,1452.0332.1133.79
Go Pro /wp-admin/edit.php?post_type=wp_content_pilot&page=go_wpcp_pro4,8706.25191.13130.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall successfully, leaving 2 tables in the database
    • wp_wpcp_links
    • wp_wpcp_logs
  • This plugin did not uninstall successfully, leaving 12 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • wpcp_dismissible_notices
    • wpcp_db_version
    • wpcp_install_date
    • wpcp_admin_notices
    • widget_theysaidso_widget
    • wpcp_version
    • wpcp_settings_article
    • theysaidso_admin_options
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please take a closer look at the following
  • 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function hide_errors() on null in wp-content/plugins/wp-content-pilot/includes/admin/updates/update-1.2.0.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/wp-content-pilot/includes/admin/views/metabox/campaign-posts.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function hide_errors() on null in wp-content/plugins/wp-content-pilot/includes/admin/updates/update-1.2.7.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-content-pilot/includes/admin/views/metabox/campaign-selection.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function hide_errors() on null in wp-content/plugins/wp-content-pilot/includes/admin/updates/update-1.0.4.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-content-pilot/includes/admin/views/metabox/campaign-miscellaneous.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function hide_errors() on null in wp-content/plugins/wp-content-pilot/includes/admin/updates/update-1.2.4.php:12
    • > PHP Fatal error
      Uncaught Error: Call to a member function hide_errors() on null in wp-content/plugins/wp-content-pilot/includes/admin/updates/update-1.1.2.php:9
    • > PHP Fatal error
      Uncaught Error: Call to a member function hide_errors() on null in wp-content/plugins/wp-content-pilot/includes/admin/updates/update-1.2.3.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

wp-content-pilot/wp-content-pilot.php Passed 13 tests

The primary PHP file in "WP Content Pilot - Autoblogging & Affiliate Marketing Plugin" version 1.3.4 is used by WordPress to initiate all plugin functionality
100 characters long description:
WP Content Pilot automatically posts contents from various sources based on the predefined keywords.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin17,359 lines of code in 82 files:
LanguageFilesBlank linesComment linesLines of code
PHP591,8694,2959,170
JavaScript71,6995806,521
CSS55651,098
Markdown3970445
JSON10080
SVG70145

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity44.00
▷ Minimum class complexity1.00
▷ Maximum class complexity249.00
Average method complexity3.45
▷ Minimum method complexity1.00
▷ Maximum method complexity66.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes29
▷ Abstract classes13.45%
▷ Concrete classes2896.55%
▷ Final classes13.57%
Methods513
▷ Static methods7214.04%
▷ Public methods45087.72%
▷ Protected methods367.02%
▷ Private methods275.26%
Functions114
▷ Named functions10188.60%
▷ Anonymous functions1311.40%
Constants40
▷ Global constants3587.50%
▷ Class constants512.50%
▷ Public constants5100.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
28 PNG files occupy 0.25MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/modules/instragram.png10.28KB4.10KB▼ 60.13%
assets/images/modules/twitter.png8.59KB4.07KB▼ 52.64%
assets/images/modules/feed.png7.57KB3.09KB▼ 59.13%
assets/images/modules/dailymotion.png17.42KB9.25KB▼ 46.90%
assets/images/modules/yelp.png19.28KB6.62KB▼ 65.69%