Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼6.84ms] Passed 4 tests
A check of server-side resources used by Ni CRM Lead
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.10 ▼6.18 |
Dashboard /wp-admin | 3.37 ▲0.07 | 50.88 ▼3.73 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 50.62 ▲2.45 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 85.00 ▼19.91 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.12 ▲3.75 |
Service /wp-admin/edit-tags.php?taxonomy=service_master&post_type=lead_master | 3.38 | 38.37 |
Product /wp-admin/edit-tags.php?taxonomy=product_master&post_type=lead_master | 3.29 | 35.88 |
Follow Up /wp-admin/edit.php?post_type=lead_master&page=follow_up | 3.32 | 42.02 |
Add New /wp-admin/post-new.php?post_type=lead_master | 3.33 | 49.81 |
Lead /wp-admin/edit.php?post_type=lead_master | 3.34 | 47.57 |
Status /wp-admin/edit-tags.php?taxonomy=status_master&post_type=lead_master | 3.29 | 36.58 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ni CRM Lead
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 13.76 ▼0.61 | 1.87 ▲0.07 | 42.15 ▼4.54 |
Dashboard /wp-admin | 2,254 ▲77 | 5.70 ▲0.16 | 98.00 ▼3.82 | 40.42 ▼2.84 |
Posts /wp-admin/edit.php | 2,168 ▲68 | 2.59 ▲0.56 | 40.65 ▲3.78 | 36.22 ▲1.19 |
Add New Post /wp-admin/post-new.php | 1,578 ▲52 | 21.37 ▼1.63 | 693.91 ▲14.47 | 31.03 ▼28.98 |
Media Library /wp-admin/upload.php | 1,468 ▲74 | 5.13 ▲0.96 | 114.80 ▲10.67 | 44.87 ▲2.99 |
Service /wp-admin/edit-tags.php?taxonomy=service_master&post_type=lead_master | 1,342 | 2.25 | 35.37 | 31.59 |
Product /wp-admin/edit-tags.php?taxonomy=product_master&post_type=lead_master | 1,342 | 2.52 | 35.53 | 34.05 |
Follow Up /wp-admin/edit.php?post_type=lead_master&page=follow_up | 987 | 2.17 | 33.04 | 28.18 |
Add New /wp-admin/post-new.php?post_type=lead_master | 1,885 | 3.52 | 60.53 | 31.65 |
Lead /wp-admin/edit.php?post_type=lead_master | 1,197 | 2.55 | 35.56 | 28.95 |
Status /wp-admin/edit-tags.php?taxonomy=status_master&post_type=lead_master | 1,342 | 2.24 | 34.80 | 32.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=status_master&post_type=lead_master
- > Network (severe)
wp-content/plugins/ni-crm-lead/css/images/notice.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 (Add New Lead), #2 (Lead List.), #3 (How to add Follow up.), #4 (Add Follow Up.)
ni-crm-lead/ni-crm.php 92% from 13 tests
The main file in "Ni CRM Lead" v. 1.2.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ni-crm-lead.php" instead of "ni-crm.php")
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
Everything looks great! No dangerous files found in this plugin1,792 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 40 | 58 | 1,232 |
PHP | 4 | 68 | 65 | 498 |
JavaScript | 2 | 19 | 21 | 62 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 14.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.28MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/lead.png | 0.74KB | 0.73KB | ▼ 1.06% |
images/delete.png | 1.33KB | 1.43KB | 0.00% |
screenshot-3.png | 59.70KB | 18.94KB | ▼ 68.27% |
images/notice.png | 0.46KB | 0.48KB | 0.00% |
screenshot-1.png | 108.40KB | 32.82KB | ▼ 69.73% |