10% no-soup

Code Review | No Soup

WordPress plugin No Soup scored10%from 54 tests.

About plugin

  • Plugin page: no-soup
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.3.1
  • WordPress version: 6.3.1
  • First release: Jan 29, 2012
  • Latest release: Feb 13, 2012
  • Number of updates: 8
  • Update frequency: every 1.9 days
  • Top authors: windyjonas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,050 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.394.89 ▼37.63
Dashboard /wp-admin2.10 ▼1.255.27 ▼59.96
Posts /wp-admin/edit.php2.10 ▼1.265.95 ▼42.44
Add New Post /wp-admin/post-new.php2.10 ▼3.796.30 ▼93.10
Media Library /wp-admin/upload.php2.10 ▼1.136.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.25 ▼0.341.63 ▼0.2444.09 ▲0.30
Dashboard /wp-admin2,202 ▲255.63 ▲0.1096.64 ▲5.8044.14 ▲3.19
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0341.21 ▲5.7434.26 ▼2.81
Add New Post /wp-admin/post-new.php1,529 ▲123.54 ▲0.33649.02 ▼14.4754.57 ▲3.47
Media Library /wp-admin/upload.php1,404 ▲44.11 ▼0.08109.53 ▼1.3747.82 ▲1.60
No Soup /wp-admin/no-soup.php260.420.1015.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP11832112

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 code0.34
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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