Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼30.77ms] Passed 4 tests
Server-side resources used by Site Safe
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 32.38 ▼6.85 |
Dashboard /wp-admin | 3.04 ▼0.26 | 22.70 ▼25.98 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 24.92 ▼20.87 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 21.02 ▼63.80 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 21.70 ▼12.42 |
All Files /wp-admin/edit.php?post_type=wpss | 3.04 | 24.20 |
Tags /wp-admin/edit-tags.php?taxonomy=wpss-tag&post_type=wpss | 3.04 | 21.69 |
Settings /wp-admin/edit.php?post_type=wpss&page=wpss | 3.04 | 26.28 |
Add-Ons /wp-admin/edit.php?post_type=wpss&page=wpss-addons | 3.04 | 22.78 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpss | 3.04 | 19.07 |
Add New /wp-admin/post-new.php?post_type=wpss | 3.04 | 22.74 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
category_children |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Site Safe
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 13.35 ▼1.25 | 7.75 ▲6.07 | 38.81 ▼7.49 |
Dashboard /wp-admin | 2,253 ▲79 | 5.59 ▼0.06 | 89.48 ▼11.60 | 39.17 ▼6.00 |
Posts /wp-admin/edit.php | 2,158 ▲58 | 2.06 ▲0.05 | 41.15 ▲4.38 | 34.24 ▲0.90 |
Add New Post /wp-admin/post-new.php | 1,572 ▲37 | 23.25 ▲5.31 | 684.80 ▲35.31 | 55.09 ▼19.66 |
Media Library /wp-admin/upload.php | 1,458 ▲58 | 4.38 ▲0.11 | 94.81 ▼9.36 | 45.96 ▼3.34 |
All Files /wp-admin/edit.php?post_type=wpss | 1,208 | 1.92 | 34.53 | 32.26 |
Tags /wp-admin/edit-tags.php?taxonomy=wpss-tag&post_type=wpss | 1,301 | 2.14 | 27.72 | 28.45 |
Settings /wp-admin/edit.php?post_type=wpss&page=wpss | 848 | 2.02 | 25.84 | 26.72 |
Add-Ons /wp-admin/edit.php?post_type=wpss&page=wpss-addons | 834 | 2.02 | 26.05 | 26.28 |
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=wpss | 1,507 | 2.18 | 27.59 | 31.74 |
Add New /wp-admin/post-new.php?post_type=wpss | 2,820 | 7.96 | 170.68 | 65.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- category_children
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 26 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wpss
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/post-new.php?post_type=wpss
- > Notice in wp-content/plugins/site-safe/includes/class-site-safe.php+263
Trying to get property 'post_type' of non-object
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 items
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/site-safe/includes/upload.widget.php
- > /wp-content/plugins/site-safe/public/partials/site-safe-public-display.php
- > /wp-content/plugins/site-safe/includes/pages/upload.php
- > /wp-content/plugins/site-safe/includes/pages/includes/settings-tabs.php
- > /wp-content/plugins/site-safe/admin/partials/site-safe-admin-display.php
- > /wp-content/plugins/site-safe/includes/ajax/upload.php
- > /wp-content/plugins/site-safe/includes/pages-addons/includes/tabs.php
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/site-safe/includes/ajax/preview.php:3
- > PHP Notice
Undefined variable: tab in wp-content/plugins/site-safe/includes/pages-addons/includes/tabs.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/site-safe/includes/template.php:3
- > PHP Notice
Undefined index: file in wp-content/plugins/site-safe/includes/ajax/upload.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/site-safe/includes/ajax/upload.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/site-safe/includes/pages/settings-sync.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/site-safe/includes/pages-addons/index.php:2
- > PHP Notice
Undefined variable: tab in wp-content/plugins/site-safe/includes/pages-addons/includes/tabs.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/site-safe/includes/pages/index.php:2
- > PHP Notice
Undefined variable: tab in wp-content/plugins/site-safe/includes/pages/includes/settings-tabs.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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
6 plugin tags: download, privacy, safe, nft, upload...
site-safe/site-safe.php Passed 13 tests
The principal PHP file in "Site Safe" v. 1.0.0 is loaded by WordPress automatically on each request
78 characters long description:
Site Safe plugin is the easiest way to secure All Media Files and NFT uploads.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin803 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 25 | 289 | 584 | 619 |
JavaScript | 2 | 61 | 53 | 109 |
CSS | 2 | 21 | 13 | 75 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 4.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 14 | |
▷ Named functions | 5 | 35.71% |
▷ Anonymous functions | 9 | 64.29% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/icons/ext/pdf.png | 16.91KB | 4.57KB | ▼ 72.96% |
includes/icons/ext/no-preview.png | 3.66KB | 3.68KB | 0.00% |