84% blog-copier

Code Review | Blog Copier

WordPress plugin Blog Copier scored 84% from 54 tests.

About plugin

  • Plugin page: blog-copier
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Mar 15, 2012
  • Latest release: Sep 5, 2014
  • Number of updates: 31
  • Update frequency: every 29.4 days
  • Top authors: peterchester (90.32%)jbrinley (12.9%)

Code review

54 tests

User reviews

14 reviews

Install metrics

100+ active / 35,443 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Blog Copier
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.71 ▼2.86
Dashboard /wp-admin3.31 ▲0.0143.46 ▼3.13
Posts /wp-admin/edit.php3.36 ▲0.0145.07 ▼3.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.00 ▼1.35
Media Library /wp-admin/upload.php3.23 ▲0.0133.61 ▼1.42

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Blog Copier
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.21 ▼1.087.41 ▲5.6545.13 ▼1.87
Dashboard /wp-admin2,206 ▲154.87 ▼1.01108.52 ▲8.4938.48 ▼5.57
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0739.61 ▼0.9934.88 ▼0.01
Add New Post /wp-admin/post-new.php1,533 ▲1923.22 ▲5.79642.43 ▲10.4862.30 ▲4.22
Media Library /wp-admin/upload.php1,391 ▲64.23 ▲0.05102.07 ▲3.9341.57 ▲1.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/blog-copier/blog-copier.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Sites "Copy" Option) image missing
You can take inspiration from this readme.txt

blog-copier/blog-copier.php Passed 13 tests

The entry point to "Blog Copier" version 1.0.7 is a PHP file that has certain tags in its header comment area
63 characters long description:
Enables superusers to copy existing sub blogs to new sub blogs.

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 detected277 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161102277

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity4.18
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods545.45%
▷ Protected methods00.00%
▷ Private methods654.55%
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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png92.02KB27.85KB▼ 69.74%
screenshot-1.png61.61KB18.30KB▼ 70.30%