84% mw-ip-denied

Code Review | MW IP Denied

WordPress plugin MW IP Denied scored84%from 54 tests.

About plugin

  • Plugin page: mw-ip-denied
  • Plugin version: 0.3.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5
  • WordPress version: 6.3.1
  • First release: Feb 10, 2013
  • Latest release: Dec 6, 2013
  • Number of updates: 7
  • Update frequency: every 42.7 days
  • Top authors: inc2734 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /2,548 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.97ms] Passed 4 tests

An overview of server-side resources used by MW IP Denied
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.49 ▼1.28
Dashboard /wp-admin3.32 ▲0.0249.53 ▼4.19
Posts /wp-admin/edit.php3.37 ▲0.0153.78 ▲3.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.38 ▼16.25
Media Library /wp-admin/upload.php3.24 ▲0.0135.93 ▼2.15

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for MW IP Denied
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.091.73 ▼0.1441.70 ▼1.08
Dashboard /wp-admin2,198 ▲215.57 ▼0.0990.34 ▼7.1341.18 ▼4.89
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0035.20 ▲1.4635.17 ▼2.12
Add New Post /wp-admin/post-new.php6,225 ▲4,69725.84 ▲2.78945.18 ▲259.7056.61 ▲2.26
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.07101.62 ▼13.5744.87 ▼4.76

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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
Good news, no errors were detected

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/mw-ip-denied/mw-ip-denied.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: ip, denied, access, deny

mw-ip-denied/mw-ip-denied.php 92% from 13 tests

The entry point to "MW IP Denied" version 0.3.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 171 characters long)

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
No dangerous file extensions were detected158 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12289122
PO File151036

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods1090.91%
▷ Protected methods19.09%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin