Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼2.59ms] Passed 4 tests
Analyzing server-side resources used by Linkions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 38.24 ▼2.94 |
Dashboard /wp-admin | 3.50 ▲0.15 | 65.58 ▼0.51 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 56.72 ▲4.46 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 94.35 ▼8.43 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.79 ▲1.53 |
Appearance /wp-admin/admin.php?page=linkions-appearance | 3.34 | 38.42 |
Social /wp-admin/admin.php?page=linkions-social | 3.35 | 38.59 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Linkions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,040 ▲279 | 14.77 ▲0.78 | 4.82 ▲3.18 | 43.93 ▲5.81 |
Dashboard /wp-admin | 2,363 ▲182 | 6.23 ▲0.59 | 122.22 ▲19.45 | 40.76 ▼2.73 |
Posts /wp-admin/edit.php | 2,291 ▲188 | 3.31 ▲1.28 | 50.72 ▲9.99 | 32.85 ▼3.16 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.65 ▲0.86 | 653.36 ▼2.59 | 37.38 ▼25.34 |
Media Library /wp-admin/upload.php | 1,431 ▲40 | 4.15 ▼0.07 | 85.19 ▼20.91 | 44.47 ▼1.50 |
Appearance /wp-admin/admin.php?page=linkions-appearance | 1,105 | 3.03 | 38.03 | 28.48 |
Social /wp-admin/admin.php?page=linkions-social | 1,160 | 3.03 | 37.86 | 25.47 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/linkions/admin/partials/linkions-admin-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/linkions/public/profile-view.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/linkions/admin/partials/social-icons-form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/linkions/admin/partials/appearance-general-form.php:2
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== linkions ===
)
linkions/linkions.php Passed 13 tests
The primary PHP file in "Linkions" version 1.0.1 is used by WordPress to initiate all plugin functionality
76 characters long description:
Linkions helps to create a bio short link page to link your social profiles.
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 detected881 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 167 | 531 | 644 |
SVG | 8 | 0 | 8 | 134 |
CSS | 2 | 3 | 5 | 72 |
JavaScript | 2 | 11 | 55 | 31 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
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
No PNG images were found in this plugin