84% copy-blocky

Code Review | Copy Blocky

WordPress plugin Copy Blocky scored84%from 54 tests.

About plugin

  • Plugin page: copy-blocky
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2022
  • Latest release: Dec 8, 2022
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: cutch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /190 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.74ms] Passed 4 tests

An overview of server-side resources used by Copy Blocky
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.92 ▼5.75
Dashboard /wp-admin3.33 ▲0.0347.62 ▼0.51
Posts /wp-admin/edit.php3.38 ▲0.0345.92 ▼0.35
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.16 ▼8.35
Media Library /wp-admin/upload.php3.26 ▲0.0339.42 ▲2.77

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Copy Blocky
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.33 ▲0.061.71 ▲0.0337.25 ▼3.22
Dashboard /wp-admin2,202 ▲255.58 ▲0.0186.30 ▼7.3036.44 ▼1.73
Posts /wp-admin/edit.php2,104 ▲11.98 ▲0.0135.39 ▼6.5234.76 ▲0.81
Add New Post /wp-admin/post-new.php1,529 ▼622.84 ▲4.61591.19 ▼24.4360.87 ▼43.90
Media Library /wp-admin/upload.php1,404 ▲14.20 ▼0.0599.28 ▼0.9842.33 ▼0.13
Copy Blocky /wp-admin/options-general.php?page=Copy Blocky8212.0524.2128.13

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× 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/copy-blocky/settings.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/copy-blocky/settings.php:23

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: copy, styles

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

The principal PHP file in "Copy Blocky" v. 1.0.1 is loaded by WordPress automatically on each request
42 characters long description:
Copy and Paste Gutenberg Blocks and Styles

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin561 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions11100.00%
▷ Anonymous functions00.00%
▷ 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 were not PNG files found in your plugin