84% go-copy-active-plugins

Code Review | Gigaom Copy Active Plugins

WordPress plugin Gigaom Copy Active Plugins scored84%from 54 tests.

About plugin

  • Plugin page: go-copy-active-pl...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2014
  • Latest release: Mar 4, 2014
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: borkweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,118 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.21ms] Passed 4 tests

Analyzing server-side resources used by Gigaom Copy Active Plugins
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0040.44 ▼1.49
Dashboard /wp-admin3.31 ▲0.0148.05 ▼1.23
Posts /wp-admin/edit.php3.36 ▲0.0146.57 ▼5.39
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.11 ▼8.72
Media Library /wp-admin/upload.php3.23 ▲0.0036.30 ▲2.67
Copy Active Plugins /wp-admin/plugins.php?page=copy-active-plugins3.2331.33

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Gigaom Copy Active Plugins: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.23 ▼1.071.65 ▼0.1741.54 ▼2.26
Dashboard /wp-admin2,210 ▲225.86 ▲0.99109.96 ▲3.4941.57 ▲0.78
Posts /wp-admin/edit.php2,093 ▲12.00 ▲0.0140.82 ▲1.0834.67 ▲0.65
Add New Post /wp-admin/post-new.php1,550 ▲1718.08 ▼5.19674.14 ▲13.2372.37 ▲10.68
Media Library /wp-admin/upload.php1,389 ▲14.29 ▲0.0799.52 ▼7.7744.25 ▼1.36
Copy Active Plugins /wp-admin/plugins.php?page=copy-active-plugins8102.0222.1926.58

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

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
Even though no errors were found, this is by no means 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/go-copy-active-plugins/components/class-go-copy-active-plugins.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_textarea() in wp-content/plugins/go-copy-active-plugins/components/templates/admin.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: admin, plugins

go-copy-active-plugins/go-copy-active-plugins.php Passed 13 tests

The primary PHP file in "Gigaom Copy Active Plugins" version 2.0 is used by WordPress to initiate all plugin functionality
31 characters long description:
Export/Import activated plugins

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin188 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33834188

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity4.17
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods466.67%
▷ Protected methods00.00%
▷ Private methods233.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected