Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.35ms] Passed 4 tests
Analyzing server-side resources used by Link to WordPress Files
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 38.84 ▼4.16 |
Dashboard /wp-admin | 3.40 ▲0.10 | 50.00 ▼5.89 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 54.16 ▲4.21 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.40 ▼11.54 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 37.99 ▲0.21 |
Add New /wp-admin/post-new.php?post_type=attachment | 3.19 | 32.88 |
All Files /wp-admin/edit.php?post_type=attachment | 3.19 | 26.12 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_foo_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Link to WordPress Files
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,900 ▲139 | 14.53 ▲0.18 | 4.78 ▲2.78 | 41.31 ▼7.06 |
Dashboard /wp-admin | 2,226 ▲49 | 5.62 ▲0.02 | 89.60 ▼6.65 | 41.17 ▼2.91 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.00 ▲0.05 | 41.99 ▲2.18 | 36.76 ▲0.96 |
Add New Post /wp-admin/post-new.php | 1,388 ▼140 | 15.93 ▼7.20 | 552.66 ▼126.24 | 57.28 ▲9.32 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.25 ▲0.07 | 95.78 ▼3.76 | 44.59 ▼4.01 |
Add New /wp-admin/post-new.php?post_type=attachment | 1,011 | 2.24 | 49.75 | 33.51 |
All Files /wp-admin/edit.php?post_type=attachment | 1,428 | 4.22 | 85.79 | 39.32 |
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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_foo_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/link-to-wp-files/public/partials/pda-wp-magic-link-public-display.php
- > /wp-content/plugins/link-to-wp-files/admin/partials/pda-wp-magic-link-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/link-to-wp-files/admin/class-pda-wp-magic-link-admin.php:170
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: These screenshots need descriptions #2, #3 in link-to-wp-files/assets to your readme.txt
link-to-wp-files/pda-link-to-wp-file.php 85% from 13 tests
The main file in "Link to WordPress Files" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("link-to-wp-files.php" instead of "pda-link-to-wp-file.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected3,161 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 2,671 |
PHP | 14 | 160 | 606 | 333 |
JavaScript | 3 | 18 | 79 | 92 |
Markdown | 1 | 21 | 0 | 39 |
CSS | 3 | 4 | 8 | 19 |
Bourne Shell | 1 | 3 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin