Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.62ms] Passed 4 tests
Analyzing server-side resources used by Comment Form Js Validation
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.80 ▼1.02 |
Dashboard /wp-admin | 3.33 ▼0.01 | 45.53 ▼13.38 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.90 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 88.28 ▼14.98 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.34 ▲4.45 |
Comment form js validation /wp-admin/options-general.php?page=comment-form-jv-setting | 3.22 | 30.86 |
Server storage [IO: ▲1.73MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Comment Form Js Validation: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.74 ▲0.37 | 1.69 ▼0.20 | 38.65 ▼2.92 |
Dashboard /wp-admin | 2,209 ▲18 | 5.76 ▲0.66 | 98.40 ▼0.07 | 38.86 ▼2.79 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.01 ▼0.04 | 39.44 ▼10.81 | 34.60 ▼1.60 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.32 ▲0.18 | 619.91 ▲14.63 | 54.13 ▲4.77 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.22 ▲0.01 | 93.53 ▼7.47 | 40.64 ▼2.88 |
Comment form js validation /wp-admin/options-general.php?page=comment-form-jv-setting | 807 | 2.06 | 24.02 | 28.99 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 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:
- Screenshots: These screenshots do not have images: #2 (screenshot-2.png), #3 (screenshot-2.png), #4 (screenshot-2.png)
- Requires php: Invalid version format
comment-form-js-validation/comment-form-js-validation.php Passed 13 tests
This is the main PHP file of "Comment Form Js Validation" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
78 characters long description:
This plugin use for wordpress comments form js validation to the comment form.
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
No dangerous file extensions were detected493 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 86 | 99 | 332 |
JavaScript | 3 | 14 | 12 | 122 |
CSS | 2 | 3 | 0 | 39 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 24 | 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 | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 1.68MB with 1.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 42.61KB | 13.74KB | ▼ 67.76% |
screenshot-2.png | 57.62KB | 19.12KB | ▼ 66.81% |
images/step1.png | 537.07KB | 176.56KB | ▼ 67.13% |
screenshot-4.png | 853.72KB | 258.32KB | ▼ 69.74% |
images/step3.png | 54.85KB | 17.81KB | ▼ 67.52% |