100% flagged-content

Code Review | Flagged Content

WordPress plugin Flagged Content scored 100% from 54 tests.

About plugin

  • Plugin page: flagged-content
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Aug 11, 2017
  • Latest release: Oct 28, 2021
  • Number of updates: 10
  • Update frequency: every 153.9 days
  • Top authors: divspark (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 1,719 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.1945.79 ▲20.39
Dashboard /wp-admin3.11 ▲0.0657.45 ▼8.07
Posts /wp-admin/edit.php3.20 ▲0.0959.82 ▲3.54
Add New Post /wp-admin/post-new.php5.47 ▲0.04104.55 ▼562.64
Media Library /wp-admin/upload.php3.06 ▲0.0640.06 ▼1.17
Settings /wp-admin/admin.php?page=flagged_content_settings_page3.1542.66
Flagged /wp-admin/admin.php?page=flagged_content_flags_page3.2136.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
New WordPress options

Browser metrics Passed 4 tests

Flagged Content: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,737 ▲14115.95 ▲0.5510.63 ▲1.4248.99 ▲1.62
Dashboard /wp-admin3,004 ▲735.90 ▼0.33164.66 ▼15.14115.87 ▼5.98
Posts /wp-admin/edit.php2,773 ▲342.71 ▼0.0274.89 ▲2.7792.91 ▼5.61
Add New Post /wp-admin/post-new.php1,705 ▲12416.11 ▼1.98444.50 ▼41.85114.97 ▼10.38
Media Library /wp-admin/upload.php1,841 ▲345.04 ▲0.02186.74 ▲17.29127.45 ▼1.24
Settings /wp-admin/admin.php?page=flagged_content_settings_page1,8082.4066.63128.39
Flagged /wp-admin/admin.php?page=flagged_content_flags_page1,2502.4166.6771.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


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:
LanguageFilesBlank linesComment linesLines of code

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 code0.31
Average class complexity43.29
▷ Minimum class complexity9.00
▷ Maximum class complexity125.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods9775.78%
▷ Protected methods2116.41%
▷ Private methods107.81%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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