Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▲1.66ms] Passed 4 tests
Server-side resources used by Pastacode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 43.18 ▲5.47 |
Dashboard /wp-admin | 3.52 ▲0.22 | 50.30 ▲3.11 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 51.31 ▲4.65 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 91.21 ▼4.88 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.75 ▲3.74 |
Pastacode /wp-admin/options-general.php?page=pastacode | 3.38 | 33.04 |
Server storage [IO: ▲3.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 350 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Pastacode: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲72 | 13.19 ▼1.21 | 1.73 ▲0.18 | 40.07 ▼12.28 |
Dashboard /wp-admin | 2,213 ▲22 | 5.04 ▼0.84 | 107.20 ▲5.40 | 37.47 ▼2.82 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.01 | 39.35 ▼0.31 | 35.22 ▼1.16 |
Add New Post /wp-admin/post-new.php | 6,442 ▲4,903 | 23.15 ▼0.18 | 975.51 ▲366.42 | 40.04 ▼21.86 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.17 ▼0.07 | 95.36 ▼3.38 | 41.66 ▼3.67 |
Pastacode /wp-admin/options-general.php?page=pastacode | 1,236 | 2.05 | 22.60 | 31.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=pastacode
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=pastacode
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 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
Almost there! Just fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pastacode/includes/back-dependencies.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/pastacode/src/template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pastacode/includes/pastacode-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pastacode/includes/front.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pastacode/includes/remote-code-getter.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pastacode/includes/sources.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pastacode/includes/shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pastacode/includes/settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/pastacode/build/template.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pastacode/includes/tinymce-config.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
pastacode/pastacode.php 85% from 13 tests
The main PHP script in "Pastacode" version 3.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("3.1" instead of "4.0")
- Description: Please don't use more than 140 characters for the plugin description (currently 157 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
Success! There were no dangerous files found in this plugin53,037 lines of code in 338 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 224 | 5,316 | 4,277 | 46,973 |
CSS | 83 | 550 | 377 | 4,495 |
PHP | 13 | 130 | 81 | 1,171 |
JSON | 2 | 0 | 0 | 151 |
PO File | 1 | 54 | 145 | 130 |
SVG | 13 | 0 | 0 | 83 |
Sass | 2 | 6 | 0 | 34 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 47 | |
▷ Named functions | 46 | 97.87% |
▷ Anonymous functions | 1 | 2.13% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pastacode_logo.png | 1.33KB | 0.41KB | ▼ 69.02% |
images/expand-editor.png | 3.98KB | 0.56KB | ▼ 85.84% |
images/pastacode-placeholder.png | 2.31KB | 0.95KB | ▼ 58.80% |
images/expand-editor2x.png | 4.22KB | 0.77KB | ▼ 81.69% |
images/pastacode-logo.png | 5.85KB | 0.81KB | ▼ 86.19% |