Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼11.55ms] Passed 4 tests
Analyzing server-side resources used by APS Content Moderator Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.41 ▼1.70 |
Dashboard /wp-admin | 3.43 ▲0.08 | 51.97 ▼23.07 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 52.04 ▲0.75 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 89.71 ▼22.19 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.74 ▲1.26 |
APS Content Moderator /wp-admin/options-general.php?page=aps-content-moderator-cm-admin-page | 3.38 | 38.73 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 13 new options
New WordPress options |
---|
db_upgraded |
aps-content-moderator-cm-settings_comment-threshold |
aps-content-moderator-cm-settings_category2-value |
aps-content-moderator-cm-settings-data_access_url |
aps-content-moderator-cm-settings_category3-value |
can_compress_scripts |
widget_theysaidso_widget |
aps-content-moderator-cm-settings_comment-field-id |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for APS Content Moderator Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲17 | 14.66 ▲0.23 | 1.86 ▼0.07 | 46.60 ▲1.32 |
Dashboard /wp-admin | 2,210 ▲30 | 5.69 ▼0.01 | 90.85 ▼1.25 | 42.40 ▲0.67 |
Posts /wp-admin/edit.php | 2,117 ▲20 | 2.06 ▲0.03 | 35.57 ▼1.31 | 34.15 ▼0.05 |
Add New Post /wp-admin/post-new.php | 1,537 ▲5 | 23.33 ▲0.04 | 676.79 ▼13.83 | 51.41 ▲4.80 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.23 ▲0.01 | 95.40 ▼8.12 | 46.68 ▲1.72 |
APS Content Moderator /wp-admin/options-general.php?page=aps-content-moderator-cm-admin-page | 1,035 | 2.18 | 37.90 | 42.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 13 options in the database
- aps-content-moderator-cm-settings-data_access_url
- aps-content-moderator-cm-settings_category2-value
- widget_recent-posts
- can_compress_scripts
- aps-content-moderator-cm-settings_category3-value
- aps-content-moderator-cm-settings_comment-field-id
- aps-content-moderator-cm-settings_comment-max-length-note
- db_upgraded
- aps-content-moderator-cm-settings_category1-value
- aps-content-moderator-cm-settings_comment-threshold
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/aps-content-moderator/admin/views/aps-content-moderator-cm-settings.php:2
- > PHP Parse error
syntax error, unexpected 'endforeach' (T_ENDFOREACH), expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) in wp-content/plugins/aps-content-moderator/admin/views/comment-meta-box.php on line 61
- > PHP Fatal error
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)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=aps-content-moderator-cm-admin-page
- > Network (severe)
wp-content/plugins/aps-content-moderator/admin/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=aps-content-moderator-cm-admin-page
- > Network (severe)
wp-content/plugins/aps-content-moderator/admin/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
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
6 plugin tags: ai, unwanted content, filtering, text analysis, comment...
aps-content-moderator/aps-content-moderator.php Passed 13 tests
"APS Content Moderator Plugin" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
APS Content Moderator API Plugin.
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
Good job! No executable or dangerous file extensions detected2,280 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 35 | 54 | 1,173 |
PHP | 20 | 186 | 479 | 935 |
JavaScript | 5 | 8 | 39 | 95 |
PO File | 1 | 20 | 0 | 77 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 7.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 1 | 8.33% |
▷ Concrete classes | 11 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 4 | 10.26% |
▷ Public methods | 28 | 71.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 28.21% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected