89% secure-paste

Code Review | Secure Paste

WordPress plugin Secure Paste scored89%from 54 tests.

About plugin

  • Plugin page: secure-paste
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2015
  • Latest release: Feb 17, 2023
  • Number of updates: 19
  • Update frequency: every 141.6 days
  • Top authors: nikunjsoni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,416 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Secure Paste
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.67 ▼3.87
Dashboard /wp-admin3.31 ▲0.0046.54 ▼8.28
Posts /wp-admin/edit.php3.36 ▲0.0048.49 ▼2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.22 ▼13.25
Media Library /wp-admin/upload.php3.23 ▲0.0034.57 ▼4.90

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Secure Paste
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.23 ▼1.361.79 ▲0.0745.15 ▲4.72
Dashboard /wp-admin2,209 ▲184.82 ▼1.07103.89 ▼5.4239.77 ▼5.33
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0135.46 ▼5.3633.12 ▼3.93
Add New Post /wp-admin/post-new.php1,533 ▲1423.29 ▼0.01650.33 ▼5.5058.22 ▲4.43
Media Library /wp-admin/upload.php1,391 ▲34.21 ▼0.07103.17 ▼4.1743.62 ▼2.91

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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 a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can look at the official readme.txt

secure-paste/secure-paste.php 92% from 13 tests

The main PHP file in "Secure Paste" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 222 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin58 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101758

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin