73% ac-stop-content-copier

Code Review | AC STOP Content Copier

WordPress plugin AC STOP Content Copier scored 73% from 54 tests.

About plugin

  • Plugin page: ac-stop-content-c...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Oct 20, 2014
  • Latest release: Oct 20, 2014
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: adaptcoder (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 984 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼314.91ms] Passed 4 tests

This is a short check of server-side resources used by AC STOP Content Copier
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0664.80 ▲1.72
Dashboard /wp-admin3.50 ▲0.0938.59 ▼9.92
Posts /wp-admin/edit.php3.70 ▲0.0742.97 ▼2.67
Add New Post /wp-admin/post-new.php7.29 ▲0.3294.15 ▼1,248.77
Media Library /wp-admin/upload.php3.39 ▲0.0928.81 ▲2.11

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 1 new option
New tables
New WordPress options

Browser metrics Passed 4 tests

AC STOP Content Copier: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,808 ▲6415.80 ▼0.196.12 ▲0.362.09 ▲0.03
Dashboard /wp-admin2,910 ▲526.22 ▲0.05116.04 ▼19.73175.79 ▲17.41
Posts /wp-admin/edit.php2,710 ▲193.23 ▲0.0064.24 ▲0.72146.21 ▲3.40
Add New Post /wp-admin/post-new.php1,775 ▲11422.07 ▲6.37402.83 ▼1.33190.96 ▲43.41
Media Library /wp-admin/upload.php1,719 ▲215.49 ▼0.02123.69 ▼20.32209.85 ▲17.78

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_acbdlog
  • This plugin does not fully uninstall, leaving 1 option in the database
    • acbd_captcha_page

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ac-stop-content-copier/inc/settings.php:3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/ac-stop-content-copier/ac-stop-content-stealers.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ac-stop-content-copier/ac-stop-content-stealers.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Plugin setting Page.) image not found
  • Requires at least: Version format is invalid
The official readme.txt might help

ac-stop-content-copier/ac-stop-content-stealers.php 92% from 13 tests

The main file in "AC STOP Content Copier" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ac-stop-content-copier.php" instead of "ac-stop-content-stealers.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin371 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
simple-php-captcha-master/backgrounds/grey-sandbag.png5.89KB5.09KB▼ 13.53%
simple-php-captcha-master/backgrounds/polyester-lite.png1.03KB0.16KB▼ 84.86%
static/plugin-icon.png0.62KB0.50KB▼ 18.61%
simple-php-captcha-master/backgrounds/cloth-alike.png3.51KB2.67KB▼ 23.79%
static/medium-icon.png7.64KB3.68KB▼ 51.85%