83% create-content-offers-instantly-from-your-blog-posts

Code Review | Create Content Offers Instantly From Your Blog Posts

WordPress plugin Create Content Offers Instantly From Your Blog Posts scored83%from 54 tests.

About plugin

  • Plugin page: create-content-of...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.5.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.1
  • WordPress version: 6.3.1
  • First release: Jan 20, 2018
  • Latest release: Feb 15, 2019
  • Number of updates: 8
  • Update frequency: every 49.0 days
  • Top authors: sitestaffer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /788 total downloads


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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼0.64ms] Passed 4 tests

An overview of server-side resources used by Create Content Offers Instantly From Your Blog Posts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1444.42 ▼2.86
Dashboard /wp-admin3.45 ▲0.1454.98 ▼13.00
Posts /wp-admin/edit.php3.56 ▲0.2057.53 ▲7.15
Add New Post /wp-admin/post-new.php6.05 ▲0.1698.48 ▲9.47
Media Library /wp-admin/upload.php3.37 ▲0.1342.02 ▲6.16

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Create Content Offers Instantly From Your Blog Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16414.58 ▲0.466.33 ▲4.6042.37 ▼2.85
Dashboard /wp-admin2,248 ▲745.76 ▲0.09100.36 ▲11.7544.79 ▲5.78
Posts /wp-admin/edit.php2,119 ▲161.99 ▼0.0237.18 ▼1.6935.82 ▲1.45
Add New Post /wp-admin/post-new.php6,361 ▲4,83526.06 ▲2.991,001.94 ▲328.1559.85 ▼5.04
Media Library /wp-admin/upload.php1,416 ▲164.19 ▼0.09114.40 ▲4.2450.14 ▲5.96

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/create-content-offers-instantly-from-your-blog-posts/admin/partials/create-content-offers-admin-display.php
    • > /wp-content/plugins/create-content-offers-instantly-from-your-blog-posts/public/partials/create-content-offers-public-display.php

User-side errors Passed 1 test

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


Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: lead magnet, content offer, content upgrade, subscription, checklist...

create-content-offers-instantly-from-your-blog-posts/create-content-offers.php 77% from 13 tests

This is the main PHP file of "Create Content Offers Instantly From Your Blog Posts" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("create-content-offers-instantly-from-your-blog-posts.php" instead of "create-content-offers.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 205 characters long)
  • 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 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected791 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity11.75
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
▷ Static methods24.88%
▷ Public methods3380.49%
▷ Protected methods37.32%
▷ Private methods512.20%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ Global constants1100.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
No PNG images were found in this plugin