73% datasets-manager-by-arttia-creative

Code Review | Datasets Manager by Arttia Creative

WordPress plugin Datasets Manager by Arttia Creative scored73%from 54 tests.

About plugin

  • Plugin page: datasets-manager-...
  • Plugin version: 1.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Feb 27, 2023
  • Latest release: Dec 1, 2023
  • Number of updates: 20
  • Update frequency: every 14.0 days
  • Top authors: Arttia Creative (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /630 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.55MB] [CPU: ▲2.36ms] Passed 4 tests

An overview of server-side resources used by Datasets Manager by Arttia Creative
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.05 ▲0.5942.94 ▼2.22
Dashboard /wp-admin3.87 ▲0.5755.82 ▲4.87
Posts /wp-admin/edit.php3.92 ▲0.5753.42 ▲6.19
Add New Post /wp-admin/post-new.php6.47 ▲0.5895.45 ▲3.25
Media Library /wp-admin/upload.php3.73 ▲0.5040.08 ▲3.54
Upload Relations CSV /wp-admin/edit.php?post_type=datasets&page=upload-homologs-relations3.7239.24
All Data Sets /wp-admin/edit.php?post_type=datasets3.8438.78
Species /wp-admin/edit-tags.php?taxonomy=species&post_type=datasets3.7337.03
Add New Data set /wp-admin/post-new.php?post_type=datasets3.8951.18
Group /wp-admin/edit-tags.php?taxonomy=group&post_type=datasets3.7338.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 31 new files
Database: 5 new tables, 6 new options
New tables
wp_dataset_aliases_meta
wp_dataset_filtered_homologs
wp_dataset_genes
wp_dataset_meta
wp_dataset_aliases
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Datasets Manager by Arttia Creative
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲21221.86 ▲7.51113.80 ▲112.0247.30 ▲3.51
Dashboard /wp-admin2,236 ▲595.52 ▼0.1185.89 ▼11.7340.05 ▼4.52
Posts /wp-admin/edit.php2,144 ▲442.02 ▲0.0538.94 ▼1.1833.02 ▼0.93
Add New Post /wp-admin/post-new.php1,563 ▲3623.15 ▲0.03633.33 ▲7.6549.69 ▼6.48
Media Library /wp-admin/upload.php1,444 ▲444.20 ▲0.08107.51 ▲10.2544.55 ▲2.30
Upload Relations CSV /wp-admin/edit.php?post_type=datasets&page=upload-homologs-relations9372.0326.1533.70
All Data Sets /wp-admin/edit.php?post_type=datasets1,1202.4037.4729.24
Species /wp-admin/edit-tags.php?taxonomy=species&post_type=datasets1,3032.1226.6130.56
Add New Data set /wp-admin/post-new.php?post_type=datasets2,3734.6596.6441.68
Group /wp-admin/edit-tags.php?taxonomy=group&post_type=datasets1,2932.1229.3528.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% 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
  • The uninstall procedure failed, leaving 5 tables in the database
    • wp_dataset_aliases
    • wp_dataset_aliases_meta
    • wp_dataset_genes
    • wp_dataset_meta
    • wp_dataset_filtered_homologs
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: dataset_object in wp-content/plugins/datasets-manager-by-arttia-creative/templates/shortcode.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/datasets-manager-by-arttia-creative/templates/admin/fields.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_species() on null in wp-content/plugins/datasets-manager-by-arttia-creative/templates/shortcode.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: You can take inspiration from this readme.txt

datasets-manager-by-arttia-creative/datasets-manager-by-arttia-creative.php 69% from 13 tests

The entry point to "Datasets Manager by Arttia Creative" version 1.4 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "5.2")
  • Requires PHP: Required version does not match the one declared in readme.txt ("5.4" instead of "7.0")
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected4,867 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP175329863,557
JavaScript7125491,034
CSS4475276

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.33
Average class complexity33.12
▷ Minimum class complexity2.00
▷ Maximum class complexity168.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods78
▷ Static methods78.97%
▷ Public methods6076.92%
▷ Protected methods33.85%
▷ Private methods1519.23%
Functions60
▷ Named functions4371.67%
▷ Anonymous functions1728.33%
Constants6
▷ Global constants6100.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