83% pasteboard

Code Review | Pasteboard

WordPress plugin Pasteboard scored83%from 54 tests.

About plugin

  • Plugin page: pasteboard
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.1.1
  • WordPress version: 6.3.1
  • First release: Jul 3, 2015
  • Latest release: Jul 22, 2015
  • Number of updates: 3
  • Update frequency: every 11.0 days
  • Top authors: imagets (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,143 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
Installer ran successfully

Server metrics [RAM: ▼0.18MB] [CPU: ▼15.98ms] Passed 4 tests

This is a short check of server-side resources used by Pasteboard
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.18 ▲0.11
Dashboard /wp-admin3.09 ▼0.2528.92 ▼34.16
Posts /wp-admin/edit.php3.38 ▲0.0251.39 ▼3.26
Add New Post /wp-admin/post-new.php5.46 ▼0.4283.29 ▼20.37
Media Library /wp-admin/upload.php3.16 ▼0.0725.59 ▼6.14

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Pasteboard
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.21 ▼0.961.85 ▲0.1445.81 ▲2.47
Dashboard /wp-admin2,211 ▲44.89 ▼0.08112.40 ▲1.5252.28 ▲7.97
Posts /wp-admin/edit.php2,105 ▲21.96 ▼0.0738.43 ▲0.0737.71 ▲1.65
Add New Post /wp-admin/post-new.php1,548 ▲818.33 ▲0.18637.72 ▼46.4534.78 ▼29.07
Media Library /wp-admin/upload.php1,396 ▼44.30 ▲0.1196.11 ▼15.4644.88 ▼4.97

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pasteboard/print.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 87% 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
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Get screenshot from Youtube, Instagram or any site.), #2 (Copy and paste from Photoshop or any program.), #3 (Get screenshot from your desktop, your programs or any where.)
  • Contributors: The plugin contributors field is not present
The official readme.txt is a good inspiration

pasteboard/print.php 85% from 13 tests

"Pasteboard" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pasteboard.php" instead of "print.php")
  • Description: The description should be shorter than 140 characters (currently 185 characters long)

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
Everything looks great! No dangerous files found in this plugin229 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3326144
PHP1221084
CSS1001

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions4
▷ Named functions4100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.32KB0.18KB▼ 44.27%