Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/no-soup/no-soup.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; NoSoup has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼58.28ms] Passed 4 tests
An overview of server-side resources used by No Soup
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 4.89 ▼37.63 |
Dashboard /wp-admin | 2.10 ▼1.25 | 5.27 ▼59.96 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.95 ▼42.44 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.30 ▼93.10 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 6.05 ▼35.19 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
No Soup: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.25 ▼0.34 | 1.63 ▼0.24 | 44.09 ▲0.30 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▲0.10 | 96.64 ▲5.80 | 44.14 ▲3.19 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.03 | 41.21 ▲5.74 | 34.26 ▼2.81 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.54 ▲0.33 | 649.02 ▼14.47 | 54.57 ▲3.47 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.11 ▼0.08 | 109.53 ▼1.37 | 47.82 ▲1.60 |
No Soup /wp-admin/no-soup.php | 26 | 0.42 | 0.10 | 15.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/no-soup/no-soup.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; NoSoup has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- 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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/no-soup/no-soup.php:40
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/no-soup.php
- > Network (severe)
wp-admin/no-soup.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: ip, range, ban
no-soup/no-soup.php Passed 13 tests
The entry point to "No Soup" version 0.3 is a PHP file that has certain tags in its header comment area
74 characters long description:
Blocks user from IP-ranges that you specify and sends them to another page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected112 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 32 | 112 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 14.29% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There were not PNG files found in your plugin