10% copy-me

Code Review | copy-me

WordPress plugin copy-me scored 10% from 54 tests.

About plugin

  • Plugin page: copy-me
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jul 21, 2015
  • Latest release: Jul 21, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: alancf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,620 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/copy-me/includes/class_copier.php+5
    Methods with the same name as their class will not be constructors in a future version of PHP; S2S_copier has a deprecated constructor

Server metrics [RAM: ▼1.82MB] [CPU: ▼54.28ms] Passed 4 tests

A check of server-side resources used by copy-me
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.16 ▼1.305.66 ▼35.31
Dashboard /wp-admin2.18 ▼1.126.08 ▼40.40
Posts /wp-admin/edit.php2.18 ▼1.178.36 ▼41.63
Add New Post /wp-admin/post-new.php2.18 ▼3.705.44 ▼99.78
Media Library /wp-admin/upload.php2.18 ▼1.056.63 ▼29.41

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
recovery_mode_email_last_sent
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

copy-me: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.28 ▼1.004.65 ▲2.9247.67 ▲3.17
Dashboard /wp-admin2,210 ▲255.80 ▼0.10100.51 ▲2.7240.00 ▼6.99
Posts /wp-admin/edit.php1,224 ▼8651.37 ▼0.638.66 ▼31.7629.03 ▼5.93
Add New Post /wp-admin/post-new.php1,518 ▲423.12 ▲5.67648.72 ▼39.3356.29 ▲3.60
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.1394.98 ▼2.9344.71 ▼1.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/copy-me/includes/class_copier.php+5
    Methods with the same name as their class will not be constructors in a future version of PHP; S2S_copier has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/copy-me/copy-me.php:34

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: copy content, copy posts, multisite

copy-me/copy-me.php Passed 13 tests

The principal PHP file in "copy-me" v. 1.0.0 is loaded by WordPress automatically on each request
100 characters long description:
copy-me allows you to copy a post, page or custom post type to another site in a Wordpress multisite

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin403 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP213543339
JavaScript16043
CSS14021

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity19.00
▷ Minimum class complexity4.00
▷ Maximum class complexity34.00
Average method complexity2.89
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods15.26%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin