Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼131.81ms] Passed 4 tests
This is a short check of server-side resources used by New Page Comments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 44.98 ▲23.39 |
Dashboard /wp-admin | 3.18 ▲0.13 | 43.72 ▲1.37 |
Posts /wp-admin/edit.php | 3.28 ▲0.17 | 60.30 ▲22.91 |
Add New Post /wp-admin/post-new.php | 5.54 ▲0.10 | 106.60 ▼562.83 |
Media Library /wp-admin/upload.php | 3.12 ▲0.12 | 47.61 ▲11.31 |
New page comment /wp-admin/options-general.php?page=new-page-comment | 3.09 | 38.74 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for New Page Comments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.23 ▲0.36 | 12.30 ▲3.15 | 47.14 ▼3.72 |
Dashboard /wp-admin | 2,978 ▲47 | 5.90 ▼0.17 | 147.01 ▼6.67 | 119.36 ▼7.38 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.00 | 66.84 ▼8.65 | 99.38 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.36 ▼0.06 | 405.91 ▲18.15 | 113.79 ▼2.16 |
Media Library /wp-admin/upload.php | 1,812 ▲2 | 5.00 ▼0.02 | 167.38 ▲10.23 | 125.85 ▼1.33 |
New page comment /wp-admin/options-general.php?page=new-page-comment | 1,176 | 2.49 | 68.43 | 73.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
No output text or server-side errors detected on direct access of PHP files
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 browser errors
- > GET request to /wp-admin/options-general.php?page=new-page-comment
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: $ is not a function" "TypeError: $ is not a function\n at commentOption (/wp-content/plugins/new-page-comments/assets/admin-main.js?ver=0.3:77:13)\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/new-page-comments/assets/admin-main.js?ver=0.3:69:5)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=new-page-comment
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: $ is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Post page with Comment button), #2 (Comment page with comment list)
new-page-comments/new-page-comments.php Passed 13 tests
"New Page Comments" version 0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
Show comments section in new page or load when user wants to see. Reduce load time process.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin640 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 66 | 46 | 491 |
JavaScript | 2 | 6 | 1 | 94 |
CSS | 2 | 2 | 3 | 52 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 28 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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