Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼312.24ms] Passed 4 tests
This is a short check of server-side resources used by Replace Word
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 53.87 ▼5.68 |
Dashboard /wp-admin | 3.41 ▲0.01 | 37.41 ▼49.19 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.01 ▼27.98 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.08 | 93.85 ▼1,166.09 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 26.53 ▼4.88 |
Replace Word /wp-admin/options-general.php?page=replace-word | 3.32 | 22.74 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Replace Word
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲57 | 15.86 ▼0.08 | 5.82 ▼0.48 | 2.37 ▲0.13 |
Dashboard /wp-admin | 2,893 ▲32 | 6.24 ▲0.13 | 121.62 ▼16.57 | 164.36 ▼0.73 |
Posts /wp-admin/edit.php | 2,690 ▲5 | 3.24 ▲0.01 | 63.32 ▼2.94 | 145.19 ▼2.10 |
Add New Post /wp-admin/post-new.php | 1,755 ▲94 | 20.92 ▲4.40 | 433.96 ▲18.78 | 181.71 ▼12.76 |
Media Library /wp-admin/upload.php | 1,700 ▲8 | 5.49 ▼0.10 | 151.76 ▲0.61 | 236.17 ▲9.89 |
Replace Word /wp-admin/options-general.php?page=replace-word | 1,126 | 2.81 | 97.34 | 104.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=replace-word
- > Notice in wp-content/plugins/replace-word/template/rword-admin-html.php+27
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=replace-word
- > Notice in wp-content/plugins/replace-word/template/rword-admin-html.php+85
Undefined variable: i
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 take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/replace-word/rword-admin-settings.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/replace-word/template/rword-admin-html.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/replace-word/rword-front-action.php:72
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% 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:
- Tags: There are too many tags (15 tag instead of maximum 10)
- Screenshots: Screenshot #1 (Screenshot 'screenshot-1.png' shows option page for this plug-in.) image required
replace-word/replace-word.php Passed 13 tests
"Replace Word" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
80 characters long description:
This plugin is use to replace word from site whithout touch it's code structure.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected491 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 30 | 8 | 233 |
PHP | 4 | 11 | 31 | 210 |
JavaScript | 1 | 0 | 6 | 48 |
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.43 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 39.42KB | 18.78KB | ▼ 52.36% |
assets/images/draggable.png | 4.88KB | 4.64KB | ▼ 4.91% |