93% ritziexport

Code Review | RitziExport

WordPress plugin RitziExport scored 93% from 54 tests.

About plugin

  • Plugin page: ritziexport
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7.1-5.8
  • WordPress version: 5.8.1
  • First release: Oct 11, 2021
  • Latest release: Oct 11, 2021
  • Number of updates: 2
  • Update frequency: every 31.0 days
  • Top authors: ritziapp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 37 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼148.09ms] Passed 4 tests

This is a short check of server-side resources used by RitziExport
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1234.82 ▲13.14
Dashboard /wp-admin3.06 ▲0.0041.65 ▼1.10
Posts /wp-admin/edit.php3.11 ▲0.0042.36 ▼2.83
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.19 ▼581.63
Media Library /wp-admin/upload.php3.00 ▼0.0132.27 ▼6.79

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for RitziExport
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.85 ▲0.278.54 ▼0.6447.90 ▼0.95
Dashboard /wp-admin2,992 ▲616.13 ▲0.05132.03 ▼7.45105.62 ▼17.87
Posts /wp-admin/edit.php2,739 ▼02.70 ▼0.0261.58 ▼2.5392.30 ▼6.43
Add New Post /wp-admin/post-new.php1,502 ▲418.61 ▼0.21373.17 ▲12.62104.13 ▼11.84
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.02145.44 ▼5.22121.40 ▼4.05

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 wp_get_upload_dir() in wp-content/plugins/ritziexport/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-1.png - Plugin main page) image not found
You can look at the official readme.txt

ritziexport/xml-for-ritzi.php 77% from 13 tests

The entry point to "RitziExport" version 1.0.0 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 must be the same as the one declared in readme.txt ("5.0" instead of "5.7.1")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ritziexport.php" instead of "xml-for-ritzi.php")
  • 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 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin288 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP457125264
CSS10024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity14.00
▷ Minimum class complexity12.00
▷ Maximum class complexity16.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods1885.71%
▷ Protected methods14.76%
▷ Private methods29.52%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin