Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5643
File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.56ms] Passed 4 tests
Analyzing server-side resources used by Advanced Link Directory
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.93 ▲3.06 |
Dashboard /wp-admin | 3.34 ▲0.04 | 43.80 ▼2.49 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.39 ▲1.29 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 84.16 ▼16.10 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.47 ▲3.31 |
Link Directory /wp-admin/admin.php?page=edit-reviews | 3.24 | 32.21 |
About Plugin /wp-admin/admin.php?page=plugin_info | 3.23 | 31.57 |
Add Link /wp-admin/admin.php?page=add_link | 3.23 | 28.14 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_adv_reviews |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Advanced Link Directory: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,856 ▲110 | 14.47 ▲0.09 | 2.19 ▲0.67 | 44.85 ▲5.81 |
Dashboard /wp-admin | 2,235 ▲43 | 5.76 ▲0.85 | 93.78 ▼17.62 | 38.52 ▼0.36 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.00 ▼0.05 | 35.74 ▼0.68 | 32.16 ▼1.80 |
Add New Post /wp-admin/post-new.php | 1,557 ▲43 | 23.02 ▲5.43 | 684.76 ▲35.63 | 53.89 ▲1.99 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.22 ▼0.08 | 100.74 ▼7.93 | 42.63 ▼2.20 |
Link Directory /wp-admin/admin.php?page=edit-reviews | 821 | 2.06 | 24.01 | 27.31 |
About Plugin /wp-admin/admin.php?page=plugin_info | 804 | 2.03 | 23.89 | 25.22 |
Add Link /wp-admin/admin.php?page=add_link | 887 | 2.06 | 24.86 | 24.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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 fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/advanc-link-directory/advlinkdirectory.php
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/plugin_info.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/site_link.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanc-link-directory/site_link.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/add_link.php:2
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/advanc-link-directory/site_link.php on line 2
- > PHP Notice
Undefined variable: data in wp-content/plugins/advanc-link-directory/site_link.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/edit_link.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanc-link-directory/admin_link.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, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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:
- Screenshots: Please add images for these screenshots: #1 (Front end default design template.), #2 (BackEnd View All Your Lists)
- Plugin Name: You should set the name of your plugin on the first line (
=== advanc-link-directory ===
)
advanc-link-directory/advlinkdirectory.php 92% from 13 tests
The main file in "Advanced Link Directory" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanc-link-directory.php" instead of "advlinkdirectory.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin634 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 87 | 77 | 353 |
CSS | 2 | 31 | 3 | 189 |
PO File | 1 | 36 | 38 | 88 |
JavaScript | 1 | 1 | 2 | 4 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 14 | |
▷ Named functions | 14 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/delete.png | 2.46KB | 1.48KB | ▼ 39.79% |
img/edit.png | 2.22KB | 1.51KB | ▼ 31.97% |
img/link.png | 0.41KB | 0.33KB | ▼ 20.14% |
img/placeholder.png | 4.18KB | 2.28KB | ▼ 45.55% |