Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.93ms] Passed 4 tests
This is a short check of server-side resources used by Diviner Archive
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.34 ▼6.40 |
Dashboard /wp-admin | 3.31 ▲0.00 | 51.51 ▼1.53 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 50.60 ▼20.29 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 99.28 ▼3.50 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.84 ▲0.23 |
Server storage [IO: ▲14.31MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 730 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Diviner Archive
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.15 | 4.80 ▲2.95 | 44.87 ▲5.34 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.05 | 107.41 ▲6.54 | 41.13 ▼2.58 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.05 | 39.03 ▼5.88 | 36.95 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.18 ▲5.52 | 649.76 ▼32.30 | 52.13 ▼4.18 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.27 ▲0.10 | 95.94 ▼20.02 | 43.21 ▼4.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/diviner-archive/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 254× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/diviner-archive/vendor/htmlburger/carbon-fields/templates/Container/nav_menu_item.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Container' not found in wp-content/plugins/diviner-archive/vendor/htmlburger/carbon-fields/core/Container/Term_Meta_Container.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Composer\\Plugin\\PluginInterface' not found in wp-content/plugins/diviner-archive/vendor/composer/installers/src/Composer/Installers/Plugin.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/diviner-archive/vendor/composer/installers/src/Composer/Installers/TYPO3CmsInstaller.php:11
- > PHP Fatal error
Uncaught Error: Class 'NCPR\\DivinerArchivePlugin\\Controller\\Controller' not found in wp-content/plugins/diviner-archive/src/Controller/EnqueueController.php:18
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/diviner-archive/vendor/htmlburger/carbon-fields/core/Field/Broken_Field.php:8
- > PHP Fatal error
Uncaught Error: Undefined constant 'NCPR\\DivinerArchivePlugin\\PLUGIN_NAME' in wp-content/plugins/diviner-archive/views/errors/compatibility-notice.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/diviner-archive/vendor/composer/installers/src/Composer/Installers/PiwikInstaller.php:9
- > PHP Notice
Undefined variable: plural in wp-content/plugins/diviner-archive/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 32
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/diviner-archive/src/CPT/Diviner_Field/Preset_Fields_List_Table.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: fields, search, archive
diviner-archive/diviner-archive.php 92% from 13 tests
The main PHP file in "Diviner Archive" ver. 0.5.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/resources/lang/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin38,788 lines of code in 655 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 367 | 4,382 | 10,915 | 18,243 |
JavaScript | 176 | 5,168 | 8,378 | 12,901 |
PO File | 20 | 649 | 815 | 1,790 |
Sass | 48 | 327 | 0 | 1,723 |
CSS | 13 | 323 | 1,145 | 1,634 |
C | 1 | 188 | 47 | 879 |
JSON | 9 | 0 | 0 | 871 |
Markdown | 10 | 95 | 0 | 356 |
C/C++ Header | 2 | 40 | 46 | 132 |
reStructuredText | 1 | 94 | 135 | 97 |
YAML | 3 | 13 | 0 | 61 |
XML | 3 | 3 | 0 | 43 |
m4 | 1 | 11 | 11 | 41 |
SVG | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 6.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 53 | |
Interfaces | 16 | |
Traits | 1 | |
Classes | 293 | |
▷ Abstract classes | 14 | 4.78% |
▷ Concrete classes | 279 | 95.22% |
▷ Final classes | 4 | 1.43% |
Methods | 1,502 | |
▷ Static methods | 216 | 14.38% |
▷ Public methods | 1,246 | 82.96% |
▷ Protected methods | 246 | 16.38% |
▷ Private methods | 10 | 0.67% |
Functions | 205 | |
▷ Named functions | 24 | 11.71% |
▷ Anonymous functions | 181 | 88.29% |
Constants | 149 | |
▷ Global constants | 11 | 7.38% |
▷ Class constants | 138 | 92.62% |
▷ Public constants | 138 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected