Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼12.20ms] Passed 4 tests
Analyzing server-side resources used by Commentcode API
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 38.38 ▼4.42 |
Dashboard /wp-admin | 3.36 ▲0.01 | 44.73 ▼15.21 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.17 ▲0.94 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 81.28 ▼24.86 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 31.03 ▼4.30 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Commentcode API
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.59 ▼1.00 | 4.74 ▲2.82 | 44.32 ▼0.17 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.90 | 105.58 ▲4.10 | 38.31 ▼6.61 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.03 | 39.06 ▲1.66 | 36.75 ▲5.70 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.12 ▼0.02 | 576.25 ▼105.75 | 52.90 ▼4.20 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.15 ▼0.06 | 94.45 ▲0.42 | 43.01 ▲0.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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: Class 'CommentcodeAPI_Parser_Base' not found in wp-content/plugins/commentcode-api/include/main/CommentcodeAPI_Parser_SelfClosing.php:12
- > PHP Fatal error
Uncaught Error: Class 'CommentcodeAPI_Parser_Base' not found in wp-content/plugins/commentcode-api/include/main/CommentcodeAPI_Parser_Enclosing.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: shortcode, html comments, commentcode, api
commentcode-api/commentcode-api.php Passed 13 tests
Analyzing the main PHP file in "Commentcode API" version 1.0.0
28 characters long description:
A shortcode alternative API.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected396 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 67 | 266 | 275 |
Markdown | 1 | 53 | 0 | 121 |
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.15 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 1 | 12.50% |
Methods | 23 | |
▷ Static methods | 4 | 17.39% |
▷ Public methods | 13 | 56.52% |
▷ Protected methods | 8 | 34.78% |
▷ Private methods | 2 | 8.70% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 14 | 100.00% |
▷ Public constants | 14 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin