78% datalistit

Code Review | Datalist it

WordPress plugin Datalist it scored78%from 54 tests.

About plugin

  • Plugin page: datalistit
  • Plugin version: 0.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.0.1
  • WordPress version: 6.3.1
  • First release: Aug 7, 2013
  • Latest release: Feb 27, 2017
  • Number of updates: 15
  • Update frequency: every 86.7 days
  • Top authors: datalistit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,699 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
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Datalist it
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.76 ▲3.46
Dashboard /wp-admin3.31 ▲0.0145.01 ▼2.94
Posts /wp-admin/edit.php3.37 ▲0.0145.46 ▲1.27
Add New Post /wp-admin/post-new.php5.91 ▲0.0384.80 ▼3.17
Media Library /wp-admin/upload.php3.24 ▲0.0134.26 ▲1.58
Datalist it /wp-admin/options-general.php?page=datalistit/datalistit.php3.1829.93

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Datalist it
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲17613.75 ▼0.615.72 ▲4.0744.99 ▼5.45
Dashboard /wp-admin2,231 ▲435.23 ▲0.32111.73 ▼5.0837.11 ▼7.21
Posts /wp-admin/edit.php2,114 ▲252.22 ▲0.1639.21 ▲3.8034.44 ▼1.62
Add New Post /wp-admin/post-new.php1,526 ▼323.38 ▲5.10599.92 ▼34.1955.85 ▲2.12
Media Library /wp-admin/upload.php1,407 ▲164.34 ▲0.14100.67 ▼2.9441.54 ▼1.59
Datalist it /wp-admin/options-general.php?page=datalistit/datalistit.php9001.8329.2240.84

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=datalistit/datalistit.php
    • > Warning in wp-content/plugins/datalistit/datalistit.php+126
    Use of undefined constant deletecheck - assumed 'deletecheck' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=datalistit/datalistit.php
    • > Warning in wp-content/plugins/datalistit/datalistit.php+172
    Use of undefined constant filename - assumed 'filename' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=datalistit/datalistit.php
    • > Warning in wp-content/plugins/datalistit/datalistit.php+174
    Use of undefined constant extension - assumed 'extension' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=datalistit/datalistit.php
    • > Notice in wp-content/plugins/datalistit/datalistit.php+174
    Undefined index: extension
    • > GET request to /wp-admin/options-general.php?page=datalistit/datalistit.php
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/datalistit/datalistit.php+305
    Use of undefined constant restore - assumed 'restore' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=datalistit/datalistit.php
    • > POST request to /wp-admin/admin-ajax.php
    • > Warning in wp-content/plugins/datalistit/datalistit.php+309
    Use of undefined constant read - assumed 'read' (this will throw an Error in a future version of PHP)

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/datalistit/datalistit.php:428

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI ("none")
Please take inspiration from this readme.txt

datalistit/datalistit.php Passed 13 tests

The main PHP file in "Datalist it" ver. 0.0.3 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
Put you csv file into a database table and display it on your webside or in your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected644 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP310532506
JavaScript4214128
CSS11010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity9.50
▷ Minimum class complexity1.00
▷ Maximum class complexity18.00
Average method complexity3.43
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants16
▷ Global constants531.25%
▷ Class constants1168.75%
▷ Public constants11100.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
There were not PNG files found in your plugin