94% simple-copy-post

Code Review | Simple Copy Post Button

WordPress plugin Simple Copy Post Button scored 94% from 54 tests.

About plugin

  • Plugin page: simple-copy-post
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 5.8.1
  • First release: Aug 27, 2013
  • Latest release: Aug 27, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: johnregan3 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

1,000+ active / 11,114 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼145.19ms] Passed 4 tests

This is a short check of server-side resources used by Simple Copy Post Button
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.06 ▲8.09
Dashboard /wp-admin3.06 ▲0.0138.87 ▼11.49
Posts /wp-admin/edit.php3.15 ▲0.0448.75 ▲3.51
Add New Post /wp-admin/post-new.php5.42 ▼0.0188.01 ▼572.72
Media Library /wp-admin/upload.php3.01 ▲0.0136.23 ▼0.07

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Copy Post Button
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11215.93 ▲0.306.77 ▼1.4454.37 ▲3.02
Dashboard /wp-admin2,972 ▲426.06 ▲0.16143.46 ▼37.37121.40 ▼5.84
Posts /wp-admin/edit.php2,750 ▲112.70 ▲0.0172.90 ▲1.0397.37 ▼0.78
Add New Post /wp-admin/post-new.php1,620 ▼6321.53 ▲3.39271.16 ▼94.31105.99 ▼7.97
Media Library /wp-admin/upload.php1,815 ▲55.08 ▲0.07162.53 ▼19.15125.30 ▼5.19

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-copy-post/simple-copy-post.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: duplicate, post, button, duplicating, copy...

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

The principal PHP file in "Simple Copy Post Button" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1288889
JavaScript13027

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin