73% ac-stop-content-copier

Code Review | AC STOP Content Copier

WordPress plugin AC STOP Content Copier scored73%from 54 tests.

About plugin

  • Plugin page: ac-stop-content-c...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • 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 /1,216 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.91ms] Passed 4 tests

Server-side resources used by AC STOP Content Copier
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.0846.67 ▼0.93
Dashboard /wp-admin3.68 ▲0.0560.91 ▼8.15
Posts /wp-admin/edit.php3.78 ▲0.1055.34 ▲3.24
Add New Post /wp-admin/post-new.php6.37 ▲0.2291.53 ▼15.67
Media Library /wp-admin/upload.php3.62 ▲0.1340.29 ▲1.12

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables
wp_acbdlog
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
acbd_captcha_page
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

AC STOP Content Copier: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.38 ▲0.081.83 ▼0.0141.57 ▼1.71
Dashboard /wp-admin2,200 ▲205.70 ▲0.0489.32 ▼4.7174.79 ▲29.02
Posts /wp-admin/edit.php2,123 ▲202.14 ▲0.1339.09 ▲1.7635.95 ▲0.80
Add New Post /wp-admin/post-new.php1,546 ▲123.04 ▼0.16654.28 ▼24.0351.02 ▼2.07
Media Library /wp-admin/upload.php1,411 ▲84.20 ▼0.07101.04 ▼0.9966.86 ▲20.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie tables were found after uninstall: 1 table
    • wp_acbdlog
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • acbd_captcha_page
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > 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 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
    • > 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

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Requires at least: Version not formatted correctly
  • Screenshots: Screenshot #1 (Plugin setting Page.) image required
The official readme.txt is a good inspiration

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

The primary PHP file in "AC STOP Content Copier" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • 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 review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected371 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP313069351
CSS12020

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
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/white-wave.png1.25KB0.42KB▼ 66.59%
static/plugin-icon.png0.62KB0.50KB▼ 18.61%
simple-php-captcha-master/backgrounds/stitched-wool.png1.05KB0.21KB▼ 80.21%
simple-php-captcha-master/backgrounds/cloth-alike.png3.51KB2.67KB▼ 23.79%
simple-php-captcha-master/backgrounds/white-carbon.png1.04KB0.18KB▼ 83.18%