84% vulgar-detector

Code Review | VULGAR DETECTOR

WordPress plugin VULGAR DETECTOR scored84%from 54 tests.

About plugin

  • Plugin page: vulgar-detector
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.0
  • WordPress version: 6.3.1
  • First release: Sep 7, 2016
  • Latest release: Sep 7, 2016
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: ttarnawski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /484 total downloads

Benchmarks

Plugin footprint 83% 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.01MB] [CPU: ▼2.99ms] Passed 4 tests

An overview of server-side resources used by VULGAR DETECTOR
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.30 ▼0.88
Dashboard /wp-admin3.32 ▲0.0147.73 ▼11.70
Posts /wp-admin/edit.php3.37 ▲0.0148.47 ▲0.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.76 ▲0.21
Media Library /wp-admin/upload.php3.24 ▲0.0138.49 ▲3.74

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for VULGAR DETECTOR
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼1.134.50 ▲2.4044.95 ▲0.98
Dashboard /wp-admin2,206 ▲154.83 ▼0.16111.08 ▲5.7443.29 ▲1.36
Posts /wp-admin/edit.php2,092 ▼02.03 ▲0.0141.53 ▼4.8936.70 ▼1.96
Add New Post /wp-admin/post-new.php1,542 ▲918.27 ▼4.82627.83 ▼68.3362.36 ▼1.06
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0396.62 ▼6.2541.18 ▼2.41

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
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 plugin_dir_path() in wp-content/plugins/vulgar-detector/vulgar-detector.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
No tags were found

vulgar-detector/vulgar-detector.php Passed 13 tests

This is the main PHP file of "VULGAR DETECTOR" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
57 characters long description:
Tool to recognition and block vulgar language in comments

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected68 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2211956
Markdown13012

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.00
▷ Minimum class complexity3.00
▷ Maximum class complexity5.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ 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