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.07MB] [CPU: ▼4.96ms] Passed 4 tests
This is a short check of server-side resources used by The Paste
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.30 ▼5.90 |
Dashboard /wp-admin | 3.39 ▲0.09 | 48.52 ▼3.47 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 51.14 ▲6.15 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 84.09 ▼10.18 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.21 ▼0.28 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
the_paste_enable_profile |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by The Paste
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲83 | 14.27 ▼0.30 | 2.00 ▼0.05 | 40.73 ▼2.98 |
Dashboard /wp-admin | 2,250 ▲73 | 6.08 ▲0.48 | 115.08 ▲18.78 | 43.07 ▼0.78 |
Posts /wp-admin/edit.php | 2,102 ▲5 | 1.98 ▲0.03 | 40.11 ▲1.80 | 36.19 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 23.39 ▲0.42 | 662.00 ▼13.53 | 37.63 ▼22.94 |
Media Library /wp-admin/upload.php | 1,480 ▲77 | 4.21 ▼0.09 | 91.58 ▼8.99 | 43.09 ▼0.52 |
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
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- the_paste_enable_profile
- db_upgraded
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 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 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/the-paste/index.php
- > /wp-content/plugins/the-paste/include/autoload.php
- > /wp-content/plugins/the-paste/include/ThePaste/Admin/WritingOptions.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'ThePaste\\Core\\Singleton' not found in wp-content/plugins/the-paste/include/ThePaste/Admin/TinyMce/TinyMce.php:9
- > PHP Fatal error
Uncaught Error: Class 'ThePaste\\Core\\Singleton' not found in wp-content/plugins/the-paste/include/ThePaste/Admin/Admin.php:8
- > PHP Fatal error
Uncaught Error: Class 'ThePaste\\Admin\\TinyMce\\TinyMce' not found in wp-content/plugins/the-paste/include/ThePaste/Admin/TinyMce/TinyMceThePaste.php:8
- > PHP Fatal error
Uncaught Error: Class 'ThePaste\\Core\\Plugin' not found in wp-content/plugins/the-paste/include/ThePaste/Core/Core.php:12
- > PHP Fatal error
Uncaught Error: Class 'ThePaste\\Core\\Singleton' not found in wp-content/plugins/the-paste/include/ThePaste/Core/Plugin.php:10
- > PHP Fatal error
Uncaught Error: Class 'ThePaste\\Admin\\AbstractOptions' not found in wp-content/plugins/the-paste/include/ThePaste/Admin/UserOptions.php:12
- > PHP Fatal error
Uncaught Error: Class 'ThePaste\\Core\\Singleton' not found in wp-content/plugins/the-paste/include/ThePaste/Admin/AbstractOptions.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: media library, copy paste, productivity, clipboard
the-paste/index.php 92% from 13 tests
The primary PHP file in "The Paste" version 2.1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("the-paste.php" instead of "index.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 detected1,337 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 295 | 566 | 972 |
CSS | 3 | 4 | 30 | 238 |
PO File | 1 | 78 | 127 | 125 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 3 | 30.00% |
▷ Concrete classes | 7 | 70.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 4 | 5.19% |
▷ Public methods | 59 | 76.62% |
▷ Protected methods | 12 | 15.58% |
▷ Private methods | 6 | 7.79% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin