Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/name-redactor/name-redactor.php+79
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.36ms] Passed 4 tests
Analyzing server-side resources used by Name Redactor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.44 ▼0.75 |
Dashboard /wp-admin | 3.45 ▲0.15 | 53.76 ▼2.10 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 45.77 ▲6.70 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 94.17 ▼12.48 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 33.16 ▲1.91 |
Name Redactor /wp-admin/tools.php?page=nameredactor | 3.32 | 28.09 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_name_redactor_bots |
wp_name_redactor_opt_in_opt_out |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
name_redactor_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Name Redactor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.14 ▼0.41 | 1.68 ▲0.06 | 39.03 ▼5.20 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▲0.09 | 91.39 ▲1.08 | 42.39 ▲1.44 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 1.99 ▼0.03 | 40.50 ▲2.01 | 35.68 ▼1.91 |
Add New Post /wp-admin/post-new.php | 1,526 ▼3 | 23.06 ▲0.06 | 657.62 ▲48.16 | 52.55 ▼11.01 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.25 ▲0.05 | 98.41 ▼3.12 | 42.91 ▼0.30 |
Name Redactor /wp-admin/tools.php?page=nameredactor | 945 | 1.85 | 24.75 | 29.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=nameredactor
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/tools.php?page=nameredactor
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/name-redactor/name-redactor.php:75
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/name-redactor/php/name-redactor-bot-list-table.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/name-redactor/php/name-redactor-name-list-table.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: privacy, posts, page, hide, comments...
name-redactor/name-redactor.php Passed 13 tests
"Name Redactor" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
75 characters long description:
Redact personal names whenever the site is viewed by a search engine robot.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin964 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 218 | 585 | 963 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of 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.29 |
Average class complexity | 24.75 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 59 | 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 | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin