Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼148.82ms] Passed 4 tests
Server-side resources used by Link to URL / Post
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 36.73 ▲8.68 |
Dashboard /wp-admin | 3.06 ▲0.01 | 52.87 ▲0.42 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 50.34 ▼1.88 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 98.42 ▼589.33 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 35.84 ▼4.47 |
Link to URL /wp-admin/options-general.php?page=l2url | 2.98 | 30.70 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Link to URL / Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲102 | 15.93 ▼0.05 | 8.35 ▼2.15 | 47.42 ▼4.27 |
Dashboard /wp-admin | 2,994 ▲66 | 6.06 ▼0.00 | 145.95 ▼5.05 | 115.62 ▼9.23 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▲0.00 | 70.20 ▲5.75 | 100.73 ▼3.19 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.72 ▼0.03 | 408.34 ▲4.93 | 112.23 ▼8.73 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.01 ▼0.03 | 152.34 ▼1.50 | 130.35 ▼2.14 |
Link to URL /wp-admin/options-general.php?page=l2url | 1,307 | 2.35 | 58.88 | 73.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/link-to-url-post/link-to-url.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=l2url
- > Network (severe)
http://a0.twimg.com/a/1303316982/images/twitter_logo_header.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=l2url
- > Network (severe)
https://secure-media-sf2p.facebook.com/ads3/creative/pressroom/jpg/b_1234209334_facebook_logo.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/options-general.php?page=l2url
- > Network (severe)
https://techxt.com/link2url_ad.png - Failed to load resource: the server responded with a status of 403 ()
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== link-to-url-post ===
)
link-to-url-post/link-to-url.php 85% from 13 tests
The main PHP script in "Link to URL / Post" version 1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 142 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("link-to-url-post.php" instead of "link-to-url.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
No dangerous file extensions were detected230 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 15 | 9 | 230 |
PHP code Passed 2 tests
A short review of 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.27 |
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 | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin