Benchmarks
Plugin footprint 75% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/factlink/lib/util/util.php+17
Function create_function() is deprecated
Server metrics [RAM: ▼0.00MB] [CPU: ▼258.56ms] Passed 4 tests
This is a short check of server-side resources used by Factlink for Wordpress
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.11 | 34.82 ▲13.89 |
Dashboard /wp-admin | 3.06 ▲0.00 | 41.81 ▲1.94 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 41.31 ▲2.71 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.33 ▼1,034.23 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 34.38 ▼4.66 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Factlink for Wordpress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,674 ▲68 | 16.25 ▲0.57 | 9.10 ▲0.87 | 47.04 ▼1.99 |
Dashboard /wp-admin | 2,928 ▲78 | 5.95 ▲0.09 | 137.07 ▲2.18 | 103.77 ▼6.92 |
Posts /wp-admin/edit.php | 2,706 ▼0 | 2.70 ▲0.01 | 64.83 ▼0.43 | 84.22 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,857 ▲200 | 19.16 ▲0.26 | 365.37 ▲10.67 | 105.08 ▼3.75 |
Media Library /wp-admin/upload.php | 1,775 ▲3 | 5.01 ▼0.00 | 154.64 ▲1.40 | 108.30 ▼6.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/factlink/factlink.php
- > /wp-content/plugins/factlink/app/view/include_factlink.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'vg\\wordpress_plugin\\capability\\Capability' not found in wp-content/plugins/factlink/app/capability/disable_comments.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/factlink/app/view/meta_box.php:1
- > PHP Fatal error
Uncaught Error: Class 'vg\\wordpress_plugin\\capability\\Capability' not found in wp-content/plugins/factlink/app/capability/meta_box.php:5
- > PHP Fatal error
Uncaught Error: Class 'vg\\wordpress_plugin\\capability\\Capability' not found in wp-content/plugins/factlink/app/capability/include_factlink.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/factlink/app/view/admin_page.php:10
- > PHP Fatal error
Uncaught Error: Class 'vg\\wordpress_plugin\\capability\\Capability' not found in wp-content/plugins/factlink/app/capability/admin_page.php:5
- > PHP Fatal error
Uncaught Error: Class 'vg\\wordpress_plugin\\capability\\Capability' not found in wp-content/plugins/factlink/app/capability/configuration_notice.php:5
- > PHP Fatal error
Uncaught Error: Class 'vg\\wordpress_plugin\\model\\meta\\Meta' not found in wp-content/plugins/factlink/lib/model/meta/option.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/factlink/app/view/configuration_notice.php:2
- > PHP Fatal error
Uncaught Error: Class 'vg\\wordpress_plugin\\model\\Model' not found in wp-content/plugins/factlink/app/model/settings.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== factlink ===
)
factlink/factlink.php Passed 13 tests
The primary PHP file in "Factlink for Wordpress" version 2.1 is used by WordPress to initiate all plugin functionality
78 characters long description:
Integrates the Factlink commenting & annotation tool in your Wordpress website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected715 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 227 | 138 | 715 |
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.24 |
Average class complexity | 4.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 2 | 3.39% |
▷ Public methods | 42 | 71.19% |
▷ Protected methods | 11 | 18.64% |
▷ Private methods | 6 | 10.17% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected