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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.61ms] Passed 4 tests
Server-side resources used by Cleverwise Contact Page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.40 ▼4.26 |
Dashboard /wp-admin | 3.31 ▲0.01 | 53.82 ▲5.93 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.06 ▲2.04 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.51 ▼16.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.47 ▲0.03 |
Contact Page /wp-admin/options-general.php?page=cw-contact-page | 3.17 | 27.86 |
Server storage [IO: ▲0.06MB] [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: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
contact_page_version |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Cleverwise Contact Page
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.21 ▼1.53 | 1.72 ▼0.07 | 39.68 ▼0.78 |
Dashboard /wp-admin | 2,207 ▲18 | 5.79 ▲0.84 | 101.49 ▼7.50 | 38.33 ▼4.42 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.05 ▼0.00 | 35.78 ▼6.91 | 34.92 ▼1.72 |
Add New Post /wp-admin/post-new.php | 1,517 ▼3 | 17.44 ▼5.74 | 768.10 ▲169.15 | 59.90 ▲11.35 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.24 ▲0.04 | 94.91 ▼3.96 | 41.00 ▼3.71 |
Contact Page /wp-admin/options-general.php?page=cw-contact-page | 937 | 2.02 | 21.83 | 49.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
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
- 9 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cw-contact-page
- > Notice in wp-content/plugins/cleverwise-contact-page/cpa.php+630
Trying to access array offset on value of type bool
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cleverwise-contact-page/index.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/cleverwise-contact-page/cpa.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== cleverwise-contact-page ===
)
cleverwise-contact-page/index.php 92% from 13 tests
The main PHP file in "Cleverwise Contact Page" ver. 2.4 adds more information about the plugin and also serves as the entry point for this plugin
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 ("cleverwise-contact-page.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin999 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 174 | 187 | 999 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected