90% copy-all-text

Code Review | Copy All Text

WordPress plugin Copy All Text scored90%from 54 tests.

About plugin

  • Plugin page: copy-all-text
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2023
  • Latest release: Feb 25, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: thepadding (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /373 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by Copy All Text
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.65 ▲0.94
Dashboard /wp-admin3.31 ▲0.0149.01 ▼4.50
Posts /wp-admin/edit.php3.36 ▲0.0049.78 ▼3.66
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.12 ▼8.86
Media Library /wp-admin/upload.php3.23 ▲0.0034.01 ▼2.65

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (4.00KB) outside of "wp-content/plugins/copy-all-text/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Copy All Text
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.84 ▲0.292.02 ▼0.0444.08 ▼1.30
Dashboard /wp-admin2,221 ▲154.84 ▼1.06107.35 ▼7.4939.25 ▲1.57
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0336.34 ▼0.3833.95 ▲0.63
Add New Post /wp-admin/post-new.php1,579 ▲5323.06 ▲5.56606.79 ▼83.8260.68 ▲8.51
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.18102.52 ▼15.9049.16 ▼1.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: copy all text, copy all blocks, copy text

copy-all-text/copy-all-text.php Passed 13 tests

The main file in "Copy All Text" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
Just adding a copy all text button on top of the Gutenberg editor for your sanity.

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
There were no executable files found in this plugin45 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript18334
PHP241111

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin