Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼142.09ms] Passed 4 tests
Server-side resources used by Flagged Content
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 45.79 ▲20.39 |
Dashboard /wp-admin | 3.11 ▲0.06 | 57.45 ▼8.07 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 59.82 ▲3.54 |
Add New Post /wp-admin/post-new.php | 5.47 ▲0.04 | 104.55 ▼562.64 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 40.06 ▼1.17 |
Settings /wp-admin/admin.php?page=flagged_content_settings_page | 3.15 | 42.66 |
Flagged /wp-admin/admin.php?page=flagged_content_flags_page | 3.21 | 36.29 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: 1 new table, 2 new options
New tables |
---|
wp_flaggedcontent |
New WordPress options |
---|
flaggedcontent_settings |
flaggedcontent_version |
Browser metrics Passed 4 tests
Flagged Content: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,737 ▲141 | 15.95 ▲0.55 | 10.63 ▲1.42 | 48.99 ▲1.62 |
Dashboard /wp-admin | 3,004 ▲73 | 5.90 ▼0.33 | 164.66 ▼15.14 | 115.87 ▼5.98 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.71 ▼0.02 | 74.89 ▲2.77 | 92.91 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,705 ▲124 | 16.11 ▼1.98 | 444.50 ▼41.85 | 114.97 ▼10.38 |
Media Library /wp-admin/upload.php | 1,841 ▲34 | 5.04 ▲0.02 | 186.74 ▲17.29 | 127.45 ▼1.24 |
Settings /wp-admin/admin.php?page=flagged_content_settings_page | 1,808 | 2.40 | 66.63 | 128.39 |
Flagged /wp-admin/admin.php?page=flagged_content_flags_page | 1,250 | 2.41 | 66.67 | 71.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: flagging, spam, issues, problems, report...
flagged-content/flagged-content.php Passed 13 tests
The primary PHP file in "Flagged Content" version 1.0.2 is used by WordPress to initiate all plugin functionality
40 characters long description:
Allows visitors to flag posts and pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,917 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 558 | 974 | 2,083 |
CSS | 3 | 109 | 44 | 617 |
JavaScript | 3 | 54 | 38 | 217 |
PHP code Passed 2 tests
A short review of 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.31 |
Average class complexity | 43.29 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 125.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 128 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 97 | 75.78% |
▷ Protected methods | 21 | 16.41% |
▷ Private methods | 10 | 7.81% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin