Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.95MB] [CPU: ▲4.01ms] 75% from 4 tests
An overview of server-side resources used by CM Custom WordPress Reports
It is recommended to improve the following
- CPU: You should keep total CPU usage under 500.00ms (currently 956.25ms on /wp-admin/admin.php?page=cm-custom-reports-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.11 ▲0.64 | 40.02 ▼0.72 |
Dashboard /wp-admin | 4.36 ▲1.05 | 56.65 ▲6.30 |
Posts /wp-admin/edit.php | 4.47 ▲1.11 | 59.50 ▲11.23 |
Add New Post /wp-admin/post-new.php | 6.95 ▲1.06 | 95.53 ▼0.79 |
Media Library /wp-admin/upload.php | 4.28 ▲1.04 | 48.70 ▲13.30 |
Reports /wp-admin/admin.php?page=cm-custom-reports | 4.27 | 42.39 |
Settings /wp-admin/admin.php?page=cm-custom-reports-settings | 4.55 | 956.25 |
Upgrade ➤ /wp-admin/admin.php?page=cmcr_pro | 4.27 | 40.71 |
User Guide /wp-admin/admin.php?page=cmcr_about | 4.38 | 336.45 |
Server storage [IO: ▲3.14MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 223 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by CM Custom WordPress Reports
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,873 ▲116 | 13.94 ▼0.74 | 1.72 ▼0.22 | 41.13 ▼6.14 |
Dashboard /wp-admin | 2,282 ▲94 | 5.24 ▲0.37 | 118.23 ▼1.22 | 47.02 ▲5.66 |
Posts /wp-admin/edit.php | 2,143 ▲51 | 2.43 ▲0.39 | 43.64 ▲3.84 | 38.57 ▲3.67 |
Add New Post /wp-admin/post-new.php | 1,573 ▲38 | 23.75 ▲0.59 | 696.40 ▲74.74 | 35.54 ▼18.88 |
Media Library /wp-admin/upload.php | 1,458 ▲73 | 4.70 ▲0.48 | 104.26 ▲0.33 | 46.63 ▲2.82 |
Reports /wp-admin/admin.php?page=cm-custom-reports | 1,228 | 2.24 | 34.99 | 48.54 |
Settings /wp-admin/admin.php?page=cm-custom-reports-settings | 2,498 | 8.06 | 75.85 | 141.98 |
Upgrade ➤ /wp-admin/admin.php?page=cmcr_pro | 1,434 | 2.27 | 40.14 | 80.77 |
User Guide /wp-admin/admin.php?page=cmcr_about | 3,915 | 17.72 | 465.07 | 201.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
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
Good news, no errors were detected
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 fix the following items
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cm-custom-reports/package/cminds-plugin-config.php:4
- > PHP Fatal error
Uncaught Error: Class 'CMCR_Comments_By_Type_Report' not found in wp-content/plugins/cm-custom-reports/backend/reports/CommentsByTypeReport.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/cm-custom-reports/package/views/plugin_compare_table.php:51
- > PHP Warning
include_once(): Failed opening 'CMCR_PLUGIN_DIRbackend/classes/SettingsViewAbstract.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/cm-custom-reports/backend/classes/SettingsView.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/cm-custom-reports/backend/classes/modules/GraphModule.php:9
- > 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/cm-custom-reports/backend/classes/EventLogListTable.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'CMCR_Posts_By_Author_Report' not found in wp-content/plugins/cm-custom-reports/backend/reports/PostsByAuthorReport.php:2
- > PHP Warning
Use of undefined constant CMCR_PLUGIN_DIR - assumed 'CMCR_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/cm-custom-reports/backend/classes/SettingsView.php on line 2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/cm-custom-reports/package/views/userguide_free.php:8
- > 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/cm-custom-reports/backend/classes/EventLogListTable.php on line 4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=cmcr_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
- > GET request to /wp-admin/admin.php?page=cmcr_about
- > Security (warning) in unknown
security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.
- > GET request to /wp-admin/admin.php?page=cmcr_about
- > Deprecation (warning) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yX/r/aHGdUlnkmHl.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=cmcr_about
- > Console-api (severe) in unknown
https://static.xx.fbcdn.net/rsrc.php/v3/yX/r/aHGdUlnkmHl.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."
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: report, reports, statistics, user report, custom report
cm-custom-reports/cm-custom-reports.php Passed 13 tests
The main PHP file in "CM Custom WordPress Reports" ver. 1.1.10 adds more information about the plugin and also serves as the entry point for this plugin
112 characters long description:
Plugin displays, exports, schedules and e-mails a multitude of useful reports about your Wordpress installation.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected31,719 lines of code in 136 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 46 | 3,650 | 3,396 | 16,276 |
PHP | 39 | 1,300 | 704 | 7,978 |
HTML | 28 | 724 | 27 | 2,934 |
Markdown | 6 | 790 | 0 | 2,160 |
CSS | 7 | 162 | 54 | 1,592 |
SQL | 2 | 0 | 0 | 717 |
Bourne Shell | 1 | 4 | 0 | 34 |
JSON | 7 | 0 | 0 | 28 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 39.44 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 254.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 2 | 12.50% |
▷ Concrete classes | 14 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 300 | |
▷ Static methods | 106 | 35.33% |
▷ Public methods | 261 | 87.00% |
▷ Protected methods | 34 | 11.33% |
▷ Private methods | 5 | 1.67% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 38 | |
▷ Global constants | 12 | 31.58% |
▷ Class constants | 26 | 68.42% |
▷ Public constants | 26 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
56 PNG files occupy 0.58MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
package/views/no.png | 0.38KB | 0.44KB | 0.00% |
package/css/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
package/css/images/ui-icons_454545_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
backend/libs/flot/examples/background.png | 0.23KB | 0.33KB | 0.00% |
package/CMWPPluginssuite.png | 33.88KB | 12.59KB | ▼ 62.83% |