Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼1.86ms] Passed 4 tests
Server-side resources used by Auto Approve Comments
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 43.57 ▲5.63 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.96 ▲2.69 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.29 ▲7.74 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 86.72 ▼16.44 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.33 ▲0.70 |
All Comments /wp-admin/edit-comments.php | 3.37 | 39.51 |
Auto Approve Comments /wp-admin/edit-comments.php?page=auto-approve-comments | 3.34 | 26.68 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Auto Approve Comments
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲82 | 14.73 ▼0.02 | 1.78 ▲0.14 | 44.79 ▲7.29 |
Dashboard /wp-admin | 2,220 ▲31 | 5.79 ▲0.87 | 107.98 ▼23.20 | 40.39 ▼5.89 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.00 ▲0.02 | 38.41 ▼10.00 | 32.06 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,548 ▲5 | 17.71 ▼0.38 | 702.74 ▲67.95 | 64.14 ▲9.37 |
Media Library /wp-admin/upload.php | 1,402 ▲11 | 4.38 ▲0.19 | 98.78 ▼4.37 | 40.80 ▼2.19 |
All Comments /wp-admin/edit-comments.php | 1,809 | 2.28 | 34.00 | 32.24 |
Auto Approve Comments /wp-admin/edit-comments.php?page=auto-approve-comments | 1,089 | 1.86 | 28.23 | 30.49 |
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 does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/auto-approve-comments/views/settings-page.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Commenters tab), #2 (Users tab), #3 (Roles tab)
auto-approve-comments/auto-approve-comments.php Passed 13 tests
Analyzing the main PHP file in "Auto Approve Comments" version 2.8
80 characters long description:
Auto approve new comments based on commenter (email/name/url), username or role.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin731 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 176 | 29 | 432 |
JavaScript | 5 | 63 | 0 | 185 |
CSS | 1 | 22 | 0 | 114 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 54.00 |
▷ Minimum class complexity | 54.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 1 | 5.00% |
▷ Public methods | 13 | 65.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 35.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.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 images were found in this plugin