Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure had errors
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
Server metrics [RAM: ▼1.93MB] [CPU: ▼56.62ms] Passed 4 tests
A check of server-side resources used by Recover Text Widgets
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 5.66 ▼41.92 |
Dashboard /wp-admin | 2.08 ▼1.22 | 11.81 ▼42.93 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.80 ▼46.72 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 6.98 ▼94.92 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 6.28 ▼32.09 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Recover Text Widgets: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲39 | 14.36 ▲0.01 | 1.84 ▼0.12 | 45.63 ▲4.64 |
Dashboard /wp-admin | 2,209 ▲29 | 5.58 ▼0.06 | 101.81 ▲9.21 | 63.31 ▲21.48 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.98 ▲0.00 | 36.82 ▼1.76 | 32.22 ▼6.18 |
Add New Post /wp-admin/post-new.php | 1,690 ▲153 | 21.87 ▲3.56 | 699.22 ▲60.74 | 58.27 ▼15.31 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.10 ▼0.06 | 119.55 ▲10.99 | 48.70 ▲1.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
require_once(./admin.php): failed to open stream: No such file or directory in wp-content/plugins/recover-text-widgets/pages/recover.php on line 5
- > PHP Fatal error
require_once(): Failed opening required './admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/recover-text-widgets/pages/recover.php on line 5
- > PHP Warning
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)
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 75% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Add an image for screenshot #1 (Click on recover not button to recover widgets.)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== recover-text-widgets ===
) - Donate link: Invalid URI found ("mailto:abhi.sogga144@gmail.com")
- Tags: You are using too many tags: 14 tag instead of maximum 10
recover-text-widgets/setup.php 92% from 13 tests
The primary PHP file in "Recover Text Widgets" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("recover-text-widgets.php" instead of "setup.php")
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 detected142 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 20 | 55 | 97 |
JavaScript | 1 | 5 | 5 | 30 |
CSS | 1 | 4 | 5 | 15 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 1.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 12 | |
▷ Static methods | 2 | 16.67% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.09MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 87.05KB | 39.34KB | ▼ 54.80% |
images/royal-experts-18x20.png | 0.53KB | 0.80KB | 0.00% |