10% nsfw-wp-images

Code Review | NSFW WP Images

WordPress plugin NSFW WP Images scored10%from 54 tests.

About plugin

  • Plugin page: nsfw-wp-images
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6
  • WordPress version: 6.3.1
  • First release: Aug 21, 2013
  • Latest release: Aug 21, 2013
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: Freika (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /850 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Parse error in wp-content/plugins/nsfw-wp-images/nsfw-wp-images.php+123
    syntax error, unexpected '}', expecting end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.55ms] Passed 4 tests

A check of server-side resources used by NSFW WP Images
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0054.65 ▲14.38
Dashboard /wp-admin3.31 ▲0.0048.38 ▼4.84
Posts /wp-admin/edit.php3.36 ▲0.0042.90 ▼7.71
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.83 ▼0.69
Media Library /wp-admin/upload.php3.23 ▲0.0037.45 ▲3.05

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for NSFW WP Images
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.49 ▼0.061.95 ▼0.0843.72 ▼1.65
Dashboard /wp-admin2,198 ▲245.63 ▲0.0285.86 ▼14.6243.43 ▲1.99
Posts /wp-admin/edit.php2,100 ▲31.96 ▲0.0134.89 ▼1.7633.43 ▼3.38
Add New Post /wp-admin/post-new.php1,526 ▼223.22 ▲0.16698.11 ▼18.3856.40 ▼5.21
Media Library /wp-admin/upload.php1,400 ▼04.17 ▲0.0997.10 ▼7.6242.38 ▼1.85

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Parse error
      syntax error, unexpected '}', expecting end of file in wp-content/plugins/nsfw-wp-images/nsfw-wp-images.php on line 123

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === nsfw-wp-images === )
You can look at the official readme.txt

nsfw-wp-images/nsfw-wp-images.php Passed 13 tests

The main PHP script in "NSFW WP Images" version 0.1 is automatically included on every request by WordPress
31 characters long description:
Описание плагина

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
There were no executable files found in this plugin140 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14240118
CSS12017
JavaScript1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin