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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼134.20ms] Passed 4 tests
A check of server-side resources used by LaraPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.09 ▲0.37 | 40.19 ▲16.82 |
Dashboard /wp-admin | 3.39 ▲0.33 | 62.56 ▲13.54 |
Posts /wp-admin/edit.php | 3.44 ▲0.33 | 47.99 ▲0.15 |
Add New Post /wp-admin/post-new.php | 5.75 ▲0.31 | 96.70 ▼553.87 |
Media Library /wp-admin/upload.php | 3.34 ▲0.33 | 37.49 ▲3.38 |
LaraPress /wp-admin/options-general.php?page=lara-press | 3.33 | 33.80 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 120 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for LaraPress
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,775 ▲179 | 16.16 ▲0.56 | 10.50 ▲2.07 | 51.63 ▼2.57 |
Dashboard /wp-admin | 3,064 ▲134 | 6.34 ▲0.26 | 155.13 ▼17.48 | 121.52 ▲1.36 |
Posts /wp-admin/edit.php | 2,812 ▲73 | 3.12 ▲0.43 | 78.33 ▲13.59 | 91.09 ▼4.43 |
Add New Post /wp-admin/post-new.php | 1,709 ▲26 | 18.57 ▲0.24 | 385.73 ▼18.97 | 109.34 ▼6.24 |
Media Library /wp-admin/upload.php | 1,880 ▲70 | 5.15 ▲0.13 | 169.93 ▲11.28 | 142.02 ▲6.40 |
LaraPress /wp-admin/options-general.php?page=lara-press | 1,131 | 2.41 | 66.51 | 83.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=lara-press
- > Notice in wp-content/plugins/larapress/views/admin/admin-settings.php+10
Undefined index: _wpnonce
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
- 63× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/larapress/vendor/loumray/wpcore/src/WPwidget.php:18
- > PHP Fatal error
Uncaught Error: Class 'WPLaravelBoostrap\\WPCore\\WPaction' not found in wp-content/plugins/larapress/vendor/loumray/wpcore/src/hooks/ThemeScript.php:23
- > PHP Fatal error
Uncaught Error: Class 'WPLaravelBoostrap\\WPCore\\admin\\WPpostColumn' not found in wp-content/plugins/larapress/vendor/loumray/wpcore/src/admin/WPpageColumn.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPLaravelBoostrap\\WPForms\\Text' not found in wp-content/plugins/larapress/vendor/loumray/wpforms/src/DatePicker.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPLaravelBoostrap\\WPCore\\WPaction' not found in wp-content/plugins/larapress/vendor/loumray/wpcore/src/hooks/AdminScript.php:23
- > PHP Fatal error
Uncaught Error: Class 'WPLaravelBoostrap\\WPCore\\WPaction' not found in wp-content/plugins/larapress/vendor/loumray/wpcore/src/admin/WPsubmenuPage.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function WPLaravelBoostrap\\load_plugin_textdomain() in wp-content/plugins/larapress/lara-press.php:35
- > PHP Fatal error
Uncaught Error: Class 'WPLaravelBoostrap\\WPCore\\WPfeature' not found in wp-content/plugins/larapress/vendor/loumray/wpcore/src/WPplugin.php:21
- > PHP Fatal error
Uncaught Error: Class 'WPLaravelBoostrap\\WPForms\\AbstractField' not found in wp-content/plugins/larapress/vendor/loumray/wpforms/src/Checkbox.php:13
- > PHP Fatal error
Uncaught Error: Class 'WPLaravelBoostrap\\WPForms\\AbstractField' not found in wp-content/plugins/larapress/vendor/loumray/wpforms/src/Wpeditor.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Donate link: Invalid url: ""
- Plugin Name: You should set the name of your plugin on the first line (
=== larapress ===
)
larapress/lara-press.php 92% from 13 tests
The principal PHP file in "LaraPress" v. 0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("larapress.php" instead of "lara-press.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin5,528 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 92 | 1,105 | 1,718 | 4,803 |
CSS | 5 | 36 | 13 | 367 |
JavaScript | 12 | 22 | 10 | 190 |
JSON | 4 | 0 | 0 | 158 |
Markdown | 2 | 6 | 0 | 10 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 6.52 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 5 | |
Traits | 1 | |
Classes | 80 | |
▷ Abstract classes | 9 | 11.25% |
▷ Concrete classes | 71 | 88.75% |
▷ Final classes | 0 | 0.00% |
Methods | 475 | |
▷ Static methods | 17 | 3.58% |
▷ Public methods | 469 | 98.74% |
▷ Protected methods | 5 | 1.05% |
▷ Private methods | 1 | 0.21% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin