Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.16MB] [CPU: ▼306.60ms] Passed 4 tests
Analyzing server-side resources used by Advanced Text Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.29 | 53.12 ▼1.47 |
Dashboard /wp-admin | 3.42 ▲0.01 | 21.25 ▼11.60 |
Posts /wp-admin/edit.php | 3.54 ▼0.10 | 23.89 ▼11.61 |
Add New Post /wp-admin/post-new.php | 6.27 ▼0.71 | 78.35 ▼1,201.07 |
Media Library /wp-admin/upload.php | 3.45 ▲0.15 | 22.52 ▼2.10 |
ATW Plugin /wp-admin/options-general.php?page=atw | 3.53 | 25.29 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 2 new options
New WordPress options |
---|
atw |
widget_advanced_text |
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Text Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,835 ▲91 | 15.61 ▼0.10 | 6.46 ▲0.45 | 2.33 ▲0.04 |
Dashboard /wp-admin | 2,931 ▲73 | 6.10 ▼0.02 | 116.11 ▼18.48 | 164.96 ▲5.23 |
Posts /wp-admin/edit.php | 2,725 ▲34 | 3.24 ▲0.00 | 62.25 ▲1.07 | 141.20 ▲1.00 |
Add New Post /wp-admin/post-new.php | 1,787 ▲126 | 23.03 ▲7.38 | 407.83 ▼28.28 | 157.26 ▲1.59 |
Media Library /wp-admin/upload.php | 1,737 ▲36 | 5.52 ▲0.01 | 141.68 ▲3.55 | 189.73 ▲3.63 |
ATW Plugin /wp-admin/options-general.php?page=atw | 2,031 | 4.75 | 112.56 | 130.85 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 2 options in the database
- widget_advanced_text
- atw
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/advanced-text-widget/advancedtext.php:24
- > PHP Fatal error
require_once(): Failed opening required 'ATW_LIB/wp_plugin_admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/advanced-text-widget/options/options.php on line 3
- > PHP Warning
Use of undefined constant ATW_LIB - assumed 'ATW_LIB' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-text-widget/options/options.php on line 3
- > PHP Warning
require_once(ATW_LIB/wp_plugin_admin.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-text-widget/options/options.php on line 3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=atw
- > Network (severe)
wp-content/plugins/advanced-text-widget/js/min/scripts.min.js?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=atw
- > Network (severe)
http://jquery-ui.googlecode.com/svn/tags/latest/themes/base/jquery.ui.all.css?ver=5.9.2 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: php, plugin, conditions, widget, text...
advanced-text-widget/advancedtext.php 85% from 13 tests
The entry point to "Advanced Text Widget" version 2.1.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-text-widget.php" instead of "advancedtext.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 233 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,372 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 204 | 196 | 1,170 |
PO File | 2 | 70 | 79 | 172 |
CSS | 1 | 6 | 3 | 29 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 51.33 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
PNG images were not found in this plugin