Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▼4.40ms] 75% from 4 tests
A check of server-side resources used by CM On Demand Search And Replace
Please fix the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 897.23ms on /wp-admin/admin.php?page=cmodsar_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.16 ▲0.70 | 37.88 ▼8.05 |
Dashboard /wp-admin | 4.01 ▲0.71 | 50.82 ▲3.26 |
Posts /wp-admin/edit.php | 4.06 ▲0.70 | 44.91 ▼2.90 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.64 | 85.93 ▼9.89 |
Media Library /wp-admin/upload.php | 3.87 ▲0.64 | 42.88 ▲5.48 |
User Guide /wp-admin/admin.php?page=cmodsar_about | 4.04 | 384.36 |
Settings /wp-admin/admin.php?page=cmodsar_settings | 4.08 | 897.23 |
Upgrade ➤ /wp-admin/admin.php?page=cmodsar_pro | 3.90 | 32.37 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
cmodsar_searchAndReplaceOnPosttypes |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for CM On Demand Search And Replace
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.27 ▼1.13 | 1.75 ▼0.10 | 41.17 ▲2.90 |
Dashboard /wp-admin | 2,239 ▲48 | 5.82 ▲0.93 | 95.16 ▼7.63 | 73.61 ▲25.16 |
Posts /wp-admin/edit.php | 2,121 ▲32 | 2.02 ▲0.01 | 34.81 ▼7.31 | 38.73 ▲2.03 |
Add New Post /wp-admin/post-new.php | 1,694 ▲160 | 21.03 ▼2.00 | 807.97 ▲124.20 | 62.08 ▲9.65 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.18 ▲0.04 | 95.69 ▼29.03 | 83.71 ▲35.72 |
User Guide /wp-admin/admin.php?page=cmodsar_about | 3,899 | 17.32 | 448.08 | 249.15 |
Settings /wp-admin/admin.php?page=cmodsar_settings | 2,431 | 8.47 | 92.94 | 77.72 |
Upgrade ➤ /wp-admin/admin.php?page=cmodsar_pro | 1,844 | 2.25 | 40.36 | 47.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- cmodsar_searchAndReplaceOnPosttypes
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/cm-on-demand-search-and-replace/views/backend/admin_nav.php
- > /wp-content/plugins/cm-on-demand-search-and-replace/views/backend/admin_about.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cm-on-demand-search-and-replace/package/views/userguide_free.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-on-demand-search-and-replace/package/cminds-plugin-config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_shortcode() in wp-content/plugins/cm-on-demand-search-and-replace/views/backend/admin_settings.php:8
- > PHP Warning
Use of undefined constant CMODSAR_NAME - assumed 'CMODSAR_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/cm-on-demand-search-and-replace/views/backend/admin_about.php on line 6
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/cm-on-demand-search-and-replace/views/backend/admin_nav.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-on-demand-search-and-replace/package/cminds-plugin-config.php:3
- > PHP Notice
Undefined variable: submenus in wp-content/plugins/cm-on-demand-search-and-replace/views/backend/admin_nav.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-on-demand-search-and-replace/cm-on-demand-search-and-replace.php:79
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/cm-on-demand-search-and-replace/views/backend/admin_template.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cm-on-demand-search-and-replace/package/views/plugin_compare_table.php:51
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/admin.php?page=cmodsar_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=cmodsar_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
- > GET request to /wp-admin/admin.php?page=cmodsar_about
- > Deprecation (warning) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yX/r/ZCMynepIOyM.js?_nc_x=Ij3Wp8lg5Kz 271 Listener added for a synchronous 'DOMSubtreeModified' DOM Mutation Event. This event type is deprecated (https://w3c.github.io/uievents/#legacy-event-types) and work is underway to remove it from this browser. Usage of this event listener will cause performance issues today, and represents a risk of future incompatibility. Consider using MutationObserver instead.
- > GET request to /wp-admin/admin.php?page=cmodsar_about
- > Console-api (severe) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yX/r/ZCMynepIOyM.js?_nc_x=Ij3Wp8lg5Kz 60:573 "ErrorUtils caught an error:\n\nCannot listen to an undefined element. [Caught in: Tried to listen to element of type click]\n\nSubsequent non-fatal errors won't be logged; see https://fburl.com/debugjs."
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=cmodsar_settings
- > Security (severe) in unknown
/wp-content/plugins/cm-on-demand-search-and-replace/package/js/froogaloop.js 0 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('https://player.vimeo.com') does not match the recipient window's origin ('').
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (Search and Replace using timeframe restriction)
cm-on-demand-search-and-replace/cm-on-demand-search-and-replace.php Passed 13 tests
The primary PHP file in "CM On Demand Search And Replace" version 1.3.1 is used by WordPress to initiate all plugin functionality
67 characters long description:
Searches and replaces the words and phrases throughout the content.
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
Everything looks great! No dangerous files found in this plugin7,002 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 797 | 511 | 5,260 |
CSS | 5 | 147 | 50 | 1,458 |
JavaScript | 4 | 63 | 34 | 284 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 111.67 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 254.00 |
Average method complexity | 4.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 37 | 33.33% |
▷ Public methods | 101 | 90.99% |
▷ Protected methods | 10 | 9.01% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 19 | |
▷ Global constants | 15 | 78.95% |
▷ Class constants | 4 | 21.05% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
54 PNG files occupy 0.57MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
package/CMWPPluginssuite.png | 33.88KB | 12.59KB | ▼ 62.83% |
assets/css/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
assets/css/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.33KB | 0.12KB | ▼ 62.09% |
package/views/businessdir.png | 30.22KB | 8.77KB | ▼ 70.98% |
package/css/images/ui-bg_glass_65_ffffff_1x400.png | 0.20KB | 0.09KB | ▼ 57.49% |