78% ipdata

Code Review | Ipdata Integration Plugin

WordPress plugin Ipdata Integration Plugin scored78%from 54 tests.

About plugin

  • Plugin page: ipdata
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 8, 2020
  • Latest release: May 8, 2020
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: ipdatallc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /486 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.88MB] [CPU: ▲5.93ms] Passed 4 tests

An overview of server-side resources used by Ipdata Integration Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.38 ▲0.9247.17 ▲6.60
Dashboard /wp-admin4.20 ▲0.8952.33 ▲2.21
Posts /wp-admin/edit.php4.25 ▲0.8957.42 ▲7.79
Add New Post /wp-admin/post-new.php8.58 ▲2.70126.08 ▲33.39
Media Library /wp-admin/upload.php4.06 ▲0.8344.06 ▲7.10

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 495 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Ipdata Integration Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.61 ▼0.634.58 ▲2.7342.85 ▼0.20
Dashboard /wp-admin2,225 ▲345.07 ▼0.83110.86 ▲2.2441.67 ▲1.27
Posts /wp-admin/edit.php2,105 ▲162.05 ▲0.0040.72 ▲6.0835.25 ▼1.50
Add New Post /wp-admin/post-new.php6,409 ▲4,89520.34 ▲2.67913.49 ▲227.5155.14 ▲4.60
Media Library /wp-admin/upload.php1,404 ▲134.21 ▼0.01100.18 ▲1.4641.56 ▼3.01

Uninstaller [IO: ▲0.02MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/ipdata/ipdata.php
  • 217× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AlexDashkin\\Adwpfw\\Items\\Item' not found in wp-content/plugins/ipdata/vendor/alexdashkin/adwpfw/src/Items/Asset.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'AlexDashkin\\Adwpfw\\Modules\\ModuleWithItems' not found in wp-content/plugins/ipdata/vendor/alexdashkin/adwpfw/src/Modules/Sidebars.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'AlexDashkin\\Adwpfw\\Fields\\Field' not found in wp-content/plugins/ipdata/vendor/alexdashkin/adwpfw/src/Fields/Actions.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/ipdata/vendor/twig/twig/src/Node/SandboxNode.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\Binary\\AbstractBinary' not found in wp-content/plugins/ipdata/vendor/twig/twig/src/Node/Expression/Binary/BitwiseOrBinary.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Profiler\\Dumper\\BaseDumper' not found in wp-content/plugins/ipdata/vendor/twig/twig/src/Profiler/Dumper/TextDumper.php:19
    • > PHP Fatal error
      Uncaught Error: Interface 'Twig\\Loader\\LoaderInterface' not found in wp-content/plugins/ipdata/vendor/twig/twig/src/Loader/SourceContextLoaderInterface.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\\Error\\Error' not found in wp-content/plugins/ipdata/vendor/twig/twig/src/Sandbox/SecurityError.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\ode' not found in wp-content/plugins/ipdata/vendor/twig/twig/src/Node/ForLoopNode.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Twig\ode\\Expression\\FilterExpression' not found in wp-content/plugins/ipdata/vendor/twig/twig/src/Node/Expression/Filter/DefaultFilter.php:30

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 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
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #2, #3 in ipdata/assets to your readme.txt
You can take inspiration from this readme.txt

ipdata/ipdata.php 92% from 13 tests

The main PHP file in "Ipdata Integration Plugin" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 184 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected20,838 lines of code in 489 files:
LanguageFilesBlank linesComment linesLines of code
PHP4564,7148,18420,099
JSON600444
Twig231560276
Markdown28017
CSS1001
JavaScript1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity5.02
▷ Minimum class complexity1.00
▷ Maximum class complexity152.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces36
Interfaces14
Traits0
Classes428
▷ Abstract classes245.61%
▷ Concrete classes40494.39%
▷ Final classes5112.62%
Methods1,240
▷ Static methods897.18%
▷ Public methods1,04884.52%
▷ Protected methods957.66%
▷ Private methods977.82%
Functions123
▷ Named functions9980.49%
▷ Anonymous functions2419.51%
Constants56
▷ Global constants712.50%
▷ Class constants4987.50%
▷ Public constants49100.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
PNG images were not found in this plugin