Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼286.94ms] Passed 4 tests
A check of server-side resources used by App Links
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 61.65 ▲4.39 |
Dashboard /wp-admin | 3.50 ▲0.09 | 44.12 ▼45.10 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 104.48 ▲64.15 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.01 | 125.64 ▼1,125.77 |
Media Library /wp-admin/upload.php | 3.38 ▲0.08 | 49.40 ▲18.71 |
App Links /wp-admin/tools.php?page=al_settings | 3.35 | 33.53 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for App Links
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,805 ▲51 | 16.04 ▲0.01 | 5.73 ▼0.28 | 2.74 ▲0.07 |
Dashboard /wp-admin | 2,902 ▲41 | 6.18 ▼0.15 | 157.35 ▲18.14 | 163.66 ▲3.62 |
Posts /wp-admin/edit.php | 2,695 ▲11 | 3.31 ▲0.08 | 84.11 ▼3.75 | 240.24 ▲97.47 |
Add New Post /wp-admin/post-new.php | 1,667 ▲6 | 16.37 ▲0.34 | 408.74 ▼12.53 | 181.82 ▲20.41 |
Media Library /wp-admin/upload.php | 1,708 ▲10 | 6.03 ▲0.52 | 143.66 ▲1.99 | 185.83 ▲5.82 |
App Links /wp-admin/tools.php?page=al_settings | 1,169 | 4.72 | 100.85 | 168.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/app-links/app-links.php:13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- > GET request to /wp-admin/tools.php?page=al_settings
- > Network (severe)
https://google-code-prettify.googlecode.com/svn/loader/prettify.css - Failed to load resource: the server responded with a status of 404 ()
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 require attention:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== app-links ===
)
app-links/app-links.php Passed 13 tests
"App Links" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
118 characters long description:
Facebook introduced App Links on F8 in april 2014. With this WordPress plugin you can add these App Links really easy.
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
Good job! No executable or dangerous file extensions detected641 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 111 | 173 | 389 |
JavaScript | 4 | 15 | 7 | 141 |
CSS | 2 | 21 | 3 | 111 |
PHP code Passed 2 tests
This is a very shot 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.39 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 31 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 31 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
PNG images were not found in this plugin