Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼139.69ms] Passed 4 tests
This is a short check of server-side resources used by DOI Creator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 36.83 ▲11.03 |
Dashboard /wp-admin | 3.22 ▲0.17 | 41.88 ▼2.74 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 41.17 ▼3.99 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.08 | 89.16 ▼552.97 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 32.49 ▲0.93 |
DOI creator settings /wp-admin/options-general.php?page=doi-creator-plugin | 3.07 | 28.54 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for DOI Creator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 16.17 ▲0.60 | 7.73 ▼1.22 | 49.26 ▲2.96 |
Dashboard /wp-admin | 2,975 ▲41 | 5.87 ▼0.04 | 134.60 ▼4.78 | 107.46 ▲2.21 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.68 ▼0.02 | 67.68 ▼3.91 | 103.13 ▲10.81 |
Add New Post /wp-admin/post-new.php | 1,675 ▲94 | 18.70 ▼1.70 | 369.77 ▼17.08 | 106.01 ▼18.18 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.01 ▼0.02 | 150.52 ▲11.09 | 113.65 ▼10.28 |
DOI creator settings /wp-admin/options-general.php?page=doi-creator-plugin | 1,133 | 2.05 | 59.11 | 94.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function DoiCreator\\Settings\\add_action() in wp-content/plugins/doi-creator/settings/settings_page.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function DoiCreator\\plugin_dir_path() in wp-content/plugins/doi-creator/index.php:13
- > PHP Fatal error
Uncaught Error: Class 'DoiCreator\\Curl\\CurlBase' not found in wp-content/plugins/doi-creator/curl/doi_getter.class.php:7
- > PHP Fatal error
Uncaught Error: Class 'DoiCreator\\Curl\\CurlBase' not found in wp-content/plugins/doi-creator/curl/new_doi_poster.class.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: digital object identifier, doi, datacite
doi-creator/index.php 92% from 13 tests
The main PHP script in "DOI Creator" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("doi-creator.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin415 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 125 | 28 | 415 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 4 | 11.76% |
▷ Public methods | 6 | 17.65% |
▷ Protected methods | 2 | 5.88% |
▷ Private methods | 26 | 76.47% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected