68% simple-copy

Code Review | Simple Copy

WordPress plugin Simple Copy scored68%from 54 tests.

About plugin

  • Plugin page: simple-copy
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.0
  • WordPress version: 6.3.1
  • First release: Dec 26, 2019
  • Latest release: Jun 29, 2022
  • Number of updates: 7
  • Update frequency: every 131.0 days
  • Top authors: vipestudio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /608 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.94MB] [CPU: ▼35.75ms] Passed 4 tests

A check of server-side resources used by Simple Copy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.35 ▼1.48
Dashboard /wp-admin3.00 ▼0.3026.00 ▼28.10
Posts /wp-admin/edit.php3.01 ▼0.3526.00 ▼22.76
Add New Post /wp-admin/post-new.php3.00 ▼2.8820.20 ▼77.42
Media Library /wp-admin/upload.php3.01 ▼0.2225.10 ▼14.72
Simple Copy /wp-admin/admin.php?page=simplecopy3.0131.09
Backup Database /wp-admin/admin.php?page=sc_backup_pagedb3.0129.81
Backup Themes /wp-admin/admin.php?page=sc_backup_themes_page3.0124.16
Backup Plugins /wp-admin/admin.php?page=sc_backup_pageplugin3.0130.94

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
These are issues you should consider
  • Illegal file modification found: 3 files (13,205.48KB) outside of "wp-content/plugins/simple-copy/" and "wp-content/uploads/"
    • (new file) wp-content/themes_by_simplecopy_13-10-2023-19-50-35.zip
    • (new file) wp-content/plugins_by_simplecopy_13-10-2023-19-50-38.zip
    • (new file) wp-content/database_by_simplecopy_13-10-2023-19-50-34.sql
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Copy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9014.44 ▼0.311.83 ▼0.0447.68 ▲1.86
Dashboard /wp-admin2,245 ▲424.93 ▼0.94104.96 ▼1.5874.89 ▲28.52
Posts /wp-admin/edit.php2,136 ▲331.98 ▼0.0636.43 ▼2.8635.80 ▲0.11
Add New Post /wp-admin/post-new.php1,710 ▲16522.63 ▼0.49723.20 ▲35.9958.31 ▼9.58
Media Library /wp-admin/upload.php1,430 ▲304.20 ▲0.06108.71 ▼10.0486.99 ▲35.46
Simple Copy /wp-admin/admin.php?page=simplecopy8542.1331.2434.88
Backup Database /wp-admin/admin.php?page=sc_backup_pagedb7011.537.8323.69
Backup Themes /wp-admin/admin.php?page=sc_backup_themes_page8182.0025.1527.99
Backup Plugins /wp-admin/admin.php?page=sc_backup_pageplugin8142.0039.8037.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=sc_backup_pageplugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-copy/simplecopy.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: backup, archive

simple-copy/simplecopy.php 92% from 13 tests

Analyzing the main PHP file in "Simple Copy" version 1.0
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-copy.php" instead of "simplecopy.php")

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
Good job! No executable or dangerous file extensions detected275 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP56148267
CSS1008

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.23
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/Wapuu-Vipe-Studio-Ltd.png32.87KB13.30KB▼ 59.54%
admin/img/icon.png0.76KB0.96KB0.00%