Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.31ms] Passed 4 tests
Analyzing server-side resources used by Linkify Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.06 | 38.88 ▲0.50 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.08 ▲0.27 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.60 ▼1.83 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 84.88 ▼12.16 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.00 ▲2.20 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_linkify_posts |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Linkify Posts: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.30 ▼1.08 | 1.75 ▼0.06 | 43.73 ▲1.33 |
Dashboard /wp-admin | 2,209 ▲21 | 4.90 ▲0.01 | 101.12 ▼8.21 | 40.79 ▲0.13 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▼0.04 | 35.76 ▼6.85 | 30.35 ▼6.80 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 21.11 ▼2.12 | 686.47 ▲3.37 | 46.75 ▼5.45 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.17 ▼0.02 | 95.81 ▼2.64 | 41.24 ▼0.42 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_linkify_posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/linkify-posts/tests/phpunit/bootstrap.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: posts, archives, post, link, coffee2code...
linkify-posts/linkify-posts.php Passed 13 tests
Analyzing the main PHP file in "Linkify Posts" version 2.4.1
125 characters long description:
Turn a string, list, or array of post IDs and/or slugs into a list of links to those posts. Includes widget and template tag.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected718 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 84 | 138 | 419 |
Markdown | 4 | 87 | 0 | 259 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 2 | 7.69% |
▷ Public methods | 23 | 88.46% |
▷ Protected methods | 3 | 11.54% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
There are no PNG files in this plugin