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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 34.82 ▲13.14 |
Dashboard /wp-admin | 3.06 ▲0.00 | 41.65 ▼1.10 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 42.36 ▼2.83 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 92.19 ▼581.63 |
Media Library /wp-admin/upload.php | 3.00 ▼0.01 | 32.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.85 ▲0.27 | 8.54 ▼0.64 | 47.90 ▼0.95 |
Dashboard /wp-admin | 2,992 ▲61 | 6.13 ▲0.05 | 132.03 ▼7.45 | 105.62 ▼17.87 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.02 | 61.58 ▼2.53 | 92.30 ▼6.43 |
Add New Post /wp-admin/post-new.php | 1,502 ▲4 | 18.61 ▼0.21 | 373.17 ▲12.62 | 104.13 ▼11.84 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.01 ▼0.02 | 145.44 ▼5.22 | 121.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 57 | 125 | 264 |
CSS | 1 | 0 | 0 | 24 |
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 code | 0.26 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 2 | 9.52% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 1 | 4.76% |
▷ Private methods | 2 | 9.52% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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