84% read-more-copy-link

Code Review | Read More Copy Link

WordPress plugin Read More Copy Link scored84%from 54 tests.

About plugin

  • Plugin page: read-more-copy-link
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Oct 11, 2012
  • Latest release: Sep 18, 2013
  • Number of updates: 9
  • Update frequency: every 38.0 days
  • Top authors: ElbowRobo (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

200+ active /8,628 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Read More Copy Link
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.42 ▼5.28
Dashboard /wp-admin3.31 ▲0.0151.12 ▼6.73
Posts /wp-admin/edit.php3.37 ▲0.0148.11 ▼2.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.13 ▼14.30
Media Library /wp-admin/upload.php3.24 ▲0.0137.52 ▼1.01
Stormation /wp-admin/admin.php?page=Stormation3.2032.49
Read More, Copy Link /wp-admin/admin.php?page=ReadMoreCopyLinkOptions3.2033.74

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Read More Copy Link
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8414.14 ▼0.241.96 ▲0.0840.44 ▼1.18
Dashboard /wp-admin2,206 ▲265.58 ▼0.0882.91 ▼17.1980.77 ▲36.10
Posts /wp-admin/edit.php2,126 ▲261.98 ▲0.0041.97 ▲6.5636.75 ▼0.01
Add New Post /wp-admin/post-new.php1,571 ▲4618.31 ▼5.01625.51 ▲19.69125.56 ▲68.06
Media Library /wp-admin/upload.php1,420 ▲174.10 ▼0.05101.97 ▲2.8467.08 ▲22.19
Stormation /wp-admin/admin.php?page=Stormation8102.1923.4226.75
Read More, Copy Link /wp-admin/admin.php?page=ReadMoreCopyLinkOptions8482.0125.7428.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/read-more-copy-link/read-more-copy-link.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/read-more-copy-link/loader.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 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
4 plugin tags: copy, read, link, more

read-more-copy-link/loader.php 92% from 13 tests

Analyzing the main PHP file in "Read More Copy Link" version 1.0.2
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("read-more-copy-link.php" instead of "loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected142 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2911142

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
icon16.png0.75KB0.64KB▼ 14.21%
icon32.png5.45KB1.67KB▼ 69.45%