Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼1.80ms] Passed 4 tests
Server-side resources used by Common Tools for Site
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.56 ▼1.66 |
Dashboard /wp-admin | 3.46 ▲0.16 | 57.25 ▲6.08 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 53.54 ▲2.93 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 88.71 ▼6.94 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.67 ▼1.51 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 17 new options
New WordPress options |
---|
widget_theysaidso_widget |
wpct-back-to-top-enable |
widget_recent-comments |
wpct-backtotop-color |
theysaidso_admin_options |
wpct-uninstall-enable |
wpct-scroll-progress-color |
wpct-scroll-progress-bar |
wpct-progress-bar-enable |
wpct-mime-types-enable |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Common Tools for Site
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲172 | 13.63 ▼0.61 | 5.94 ▲3.96 | 42.72 ▼4.84 |
Dashboard /wp-admin | 2,241 ▲53 | 4.85 ▼0.01 | 134.61 ▲25.45 | 45.32 ▼1.57 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.03 ▼0.02 | 37.60 ▲1.15 | 34.92 ▼1.98 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 23.15 ▲5.45 | 680.34 ▼22.39 | 60.50 ▲8.77 |
Media Library /wp-admin/upload.php | 1,420 ▲32 | 4.22 ▼0.01 | 105.09 ▼5.03 | 45.60 ▼3.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 17 options in the database
- wpct-back-to-top-enable
- widget_recent-comments
- wpct-scroll-progress-color
- widget_recent-posts
- wpct-scroll-progress-bar
- theysaidso_admin_options
- wpct-loader-enable
- db_upgraded
- wpct-mime-types-enable
- wpct-loader-image
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/common-tools-for-site/admin/partials/wp-common-tools-admin-display.php
- > /wp-content/plugins/common-tools-for-site/public/partials/wp-common-tools-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
6 plugin tags: admin bar, back to top, page loader, svg support, wp-admin logo...
common-tools-for-site/wp-common-tools.php 85% from 13 tests
The principal PHP file in "Common Tools for Site" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("common-tools-for-site.php" instead of "wp-common-tools.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,349 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 174 | 581 | 896 |
CSS | 2 | 22 | 35 | 285 |
JavaScript | 2 | 22 | 11 | 168 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG images were found in this plugin