Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼1.03MB] [CPU: ▼174.95ms] Passed 4 tests
Analyzing server-side resources used by Replace Default Words
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.57 ▼0.26 | 25.49 ▼4.28 |
Dashboard /wp-admin | 2.62 ▼0.43 | 21.87 ▼28.01 |
Posts /wp-admin/edit.php | 2.62 ▼0.49 | 21.91 ▼27.12 |
Add New Post /wp-admin/post-new.php | 2.62 ▼2.81 | 20.77 ▼634.35 |
Media Library /wp-admin/upload.php | 2.62 ▼0.38 | 20.30 ▼10.32 |
RDW /wp-admin/tools.php?page=replace-default-words | 2.62 | 18.85 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, no new options
New tables |
---|
wp_replace_mandegarweb |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Replace Default Words
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,715 ▲133 | 15.93 ▲0.43 | 9.87 ▲2.93 | 49.39 ▼3.00 |
Dashboard /wp-admin | 2,982 ▲51 | 5.93 ▼0.05 | 142.12 ▲0.76 | 109.54 ▼9.09 |
Posts /wp-admin/edit.php | 2,751 ▲12 | 2.70 ▲0.01 | 72.59 ▼4.11 | 93.15 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,893 ▲210 | 15.88 ▼2.96 | 376.81 ▲8.95 | 105.87 ▼9.16 |
Media Library /wp-admin/upload.php | 1,819 ▼3 | 5.01 ▲0.00 | 148.27 ▲0.18 | 123.88 ▼3.75 |
RDW /wp-admin/tools.php?page=replace-default-words | 1,092 | 2.09 | 51.45 | 57.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method mandegarweb_default_words::mandegarweb_localization_init() should not be called statically
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/tools.php?page=replace-default-words
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method mandegarweb_default_words::mandegarweb_localization_init() should not be called statically
- > GET request to /wp-admin/tools.php?page=replace-default-words
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method mandegarweb_default_words::mandegarweb_replace_function() should not be called statically
- > GET request to /wp-admin/tools.php?page=replace-default-words
- > User notice in wp-includes/functions.php+5663
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/tools.php?page=replace-default-words
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method mandegarweb_default_words::mandegarweb_replace_word_css() should not be called statically
- > GET request to /wp-admin/tools.php?page=replace-default-words
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method mandegarweb_update::mandegarweb_update_load_script() should not be called statically
- > GET request to /wp-admin/tools.php?page=replace-default-words
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method mandegarweb_default_words::mandegarweb_replace_word_default() should not be called statically
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (Plugin page), #2 (Replace default words)
- Tags: There are too many tags (21 tag instead of maximum 10)
replace-default-words/replace-default-words.php 92% from 13 tests
The main PHP file in "Replace Default Words" ver. 1.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected520 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 30 | 19 | 261 |
PO File | 3 | 81 | 81 | 210 |
CSS | 1 | 11 | 3 | 48 |
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 were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.02MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 9.96KB | 9.10KB | ▼ 8.67% |
screenshot-1.png | 6.31KB | 5.50KB | ▼ 12.88% |