Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.35ms] Passed 4 tests
This is a short check of server-side resources used by Process Log
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.74 ▼11.49 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.18 ▼7.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.32 ▼3.39 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.95 ▼6.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.01 ▲1.86 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_process_log_items |
wp_process_logs |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Process Log
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.09 | 1.78 ▲0.09 | 41.88 ▼4.19 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▼0.03 | 114.83 ▲3.47 | 40.92 ▼5.51 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▼0.05 | 40.99 ▲0.68 | 38.74 ▲4.44 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 23.53 ▲0.45 | 720.60 ▲14.34 | 55.37 ▼5.27 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▲0.01 | 96.55 ▼8.20 | 42.86 ▼2.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_process_logs
- wp_process_log_items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\ProcessLog\\Component\\Component' not found in wp-content/plugins/process-log/classes/View/CommentMetaBoxView.php:11
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\ProcessLog\\Model\\DatabaseItem' not found in wp-content/plugins/process-log/classes/Model/Process.php:11
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\ProcessLog\\Component\\Update' not found in wp-content/plugins/process-log/classes/Updates.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function Palasthotel\\ProcessLog\\Component\\plugin_dir_path() in wp-content/plugins/process-log/classes/Component/Plugin.php:27
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\ProcessLog\\Component\\Database' not found in wp-content/plugins/process-log/classes/Database.php:19
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\ProcessLog\\Model\\DatabaseItem' not found in wp-content/plugins/process-log/classes/Model/ProcessLog.php:14
- > PHP Fatal error
Uncaught Error: Class 'Palasthotel\\ProcessLog\\Component\\Component' not found in wp-content/plugins/process-log/classes/Views.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: debug, log
process-log/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Process Log" version 1.3.4
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("process-log.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin2,618 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 671 | 940 | 2,173 |
JavaScript | 2 | 56 | 76 | 310 |
PO File | 1 | 30 | 32 | 85 |
CSS | 1 | 37 | 1 | 45 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 4 | 13.33% |
▷ Concrete classes | 26 | 86.67% |
▷ Final classes | 0 | 0.00% |
Methods | 194 | |
▷ Static methods | 19 | 9.79% |
▷ Public methods | 185 | 95.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 4.64% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 29 | |
▷ Global constants | 2 | 6.90% |
▷ Class constants | 27 | 93.10% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected