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.05MB] [CPU: ▼9.84ms] Passed 4 tests
This is a short check of server-side resources used by WPEX Replace DB Urls
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.00 | 44.60 ▲3.48 |
Dashboard /wp-admin | 3.43 ▲0.05 | 50.62 ▼16.82 |
Posts /wp-admin/edit.php | 3.55 ▲0.15 | 48.52 ▼4.04 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.09 | 94.41 ▼19.62 |
Media Library /wp-admin/upload.php | 3.36 ▲0.09 | 38.45 ▲1.13 |
Replace Urls /wp-admin/tools.php?page=wpex_replace_string_tool | 3.34 | 36.18 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WPEX Replace DB Urls: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.18 | 1.86 ▲0.38 | 44.35 ▲4.61 |
Dashboard /wp-admin | 2,202 ▲22 | 5.59 ▼0.06 | 85.65 ▼5.59 | 40.07 ▲1.62 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.01 | 35.59 ▼3.58 | 34.00 ▼2.44 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.31 ▼4.71 | 642.61 ▼26.65 | 63.68 ▲1.13 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.22 ▼0.02 | 96.96 ▼7.91 | 43.10 ▼0.89 |
Replace Urls /wp-admin/tools.php?page=wpex_replace_string_tool | 1,017 | 1.79 | 29.90 | 26.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wpex-replace/init.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpex-replace/replacestring.class.php on line 5
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wpex-replace/replacestring.class.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpex-replace/admin.php:4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpex-replace/replacestring.class.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (The menu to wpex replace.), #2 (Instantly scan your database and see which urls are found.)
wpex-replace/init.php 92% from 13 tests
"WPEX Replace DB Urls" version 0.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("wpex-replace.php" instead of "init.php")
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 detected898 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 113 | 102 | 599 |
PO File | 2 | 62 | 136 | 181 |
JavaScript | 1 | 13 | 8 | 77 |
CSS | 17 | 5 | 67 | 41 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 74.00 |
▷ Minimum class complexity | 74.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 4.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
15 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/jquery/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | 0.00% |
css/jquery/images/ui-bg_glass_95_fef1ec_1x400.png | 0.14KB | 0.14KB | 0.00% |
css/jquery/images/ui-icons_222222_256x240.png | 3.71KB | 4.11KB | 0.00% |
css/jquery/images/ui-bg_flat_75_ffffff_40x100.png | 0.07KB | 0.08KB | 0.00% |
screenshot-2.png | 85.42KB | 31.09KB | ▼ 63.60% |