Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.79MB] [CPU: ▼29.59ms] Passed 4 tests
Analyzing server-side resources used by Community Watch
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 39.47 ▼2.18 |
Dashboard /wp-admin | 3.15 ▼0.15 | 29.09 ▼23.94 |
Posts /wp-admin/edit.php | 3.15 ▼0.21 | 29.86 ▼21.30 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.74 | 29.02 ▼63.05 |
Media Library /wp-admin/upload.php | 3.15 ▼0.08 | 24.82 ▼10.07 |
Community Watch /wp-admin/options-general.php?page=community-watch | 3.15 | 28.93 |
Content Reports /wp-admin/edit.php?post_type=cw_content_report | 3.15 | 29.72 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Community Watch
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,890 ▲129 | 13.77 ▼0.49 | 8.81 ▲6.99 | 43.48 ▲1.30 |
Dashboard /wp-admin | 2,206 ▲29 | 5.61 ▼0.03 | 93.62 ▲1.32 | 42.41 ▲0.34 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.16 ▲0.18 | 39.76 ▼2.05 | 35.15 ▲2.30 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 18.16 ▼5.22 | 617.99 ▼46.16 | 58.13 ▼0.33 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.22 ▼0.03 | 101.40 ▼0.39 | 45.01 ▲2.10 |
Community Watch /wp-admin/options-general.php?page=community-watch | 873 | 2.02 | 25.42 | 35.78 |
Content Reports /wp-admin/edit.php?post_type=cw_content_report | 1,088 | 1.95 | 31.50 | 28.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/community-watch/lib/class-sys-bot.php+98
Trying to get property 'data' of non-object
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cw_content_report
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/community-watch/lib/class-sys-bot.php+98
Trying to get property 'data' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cw_content_report
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/community-watch/lib/class-sys-bot.php+98
Trying to get property 'user_nicename' of non-object
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=cw_content_report
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/community-watch/lib/class-sys-bot.php+107
Trying to get property 'ID' of non-object
- > GET request to /wp-admin/options-general.php?page=community-watch
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=community-watch
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=community-watch
- > Notice in wp-content/plugins/community-watch/views/admin.php+81
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/community-watch/views/public.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/community-watch/views/admin.php:18
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: community, content
community-watch/community-watch.php Passed 13 tests
The primary PHP file in "Community Watch" version 1.0.0 is used by WordPress to initiate all plugin functionality
70 characters long description:
Allows users to report inappropriate content across all content types.
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 detected626 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 152 | 400 | 596 |
JavaScript | 1 | 3 | 2 | 30 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 34 | |
▷ Static methods | 4 | 11.76% |
▷ Public methods | 33 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.94% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.44MB with 0.30MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/tick-x.png | 1.21KB | 0.46KB | ▼ 61.71% |
screenshot-1.png | 450.52KB | 105.76KB | ▼ 76.52% |