Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.80MB] [CPU: ▼53.95ms] Passed 4 tests
Analyzing server-side resources used by Image (NSFW)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 6.77 ▼37.87 |
Dashboard /wp-admin | 2.21 ▼1.09 | 7.21 ▼49.33 |
Posts /wp-admin/edit.php | 2.21 ▼1.15 | 8.51 ▼41.74 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 9.24 ▼86.86 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 6.39 ▼32.79 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_moderate_content_requests |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
MODERATECONTENT__PLUGIN_debug |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Image (NSFW): an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲129 | 13.48 ▼0.87 | 8.73 ▲6.38 | 43.85 ▼1.51 |
Dashboard /wp-admin | 2,213 ▲36 | 5.65 ▲0.04 | 88.57 ▼12.14 | 39.38 ▼6.11 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.01 ▲0.01 | 43.68 ▲6.09 | 35.75 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 23.32 ▲5.56 | 676.31 ▲14.95 | 51.41 ▲1.20 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.23 ▲0.02 | 103.23 ▼3.33 | 42.49 ▼7.70 |
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
You still need to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the admin_3 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/image-nsfw/image-nsfw.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/image-nsfw/admin.php:14
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots need descriptions #2, #3, #4, #5 in image-nsfw/assets to your readme.txt
image-nsfw/image-nsfw.php 92% from 13 tests
The main file in "Image (NSFW)" v. 1.0.12 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin938 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 84 | 134 | 766 |
JavaScript | 2 | 16 | 6 | 172 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 23 | |
▷ Named functions | 23 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/rating_adult-150x150.png | 7.67KB | 3.97KB | ▼ 48.31% |
img/rating_everyone.png | 11.92KB | 4.44KB | ▼ 62.71% |
img/rating_adult.png | 10.84KB | 3.86KB | ▼ 64.41% |
img/rating_adult-187x300.png | 18.93KB | 7.66KB | ▼ 59.51% |
img/rating_adult_box.png | 11.89KB | 4.22KB | ▼ 64.52% |