Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/lean-wp-engine-staging-theme/lean-wp-engine-staging-theme.php+26
Use of undefined constant WP_SITEURL - assumed 'WP_SITEURL' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.94MB] [CPU: ▼51.51ms] Passed 4 tests
Analyzing server-side resources used by Lean WP Engine Staging Theme
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 5.13 ▼33.46 |
Dashboard /wp-admin | 2.07 ▼1.23 | 5.97 ▼45.08 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 6.63 ▼39.90 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.01 ▼87.61 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 4.81 ▼27.50 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Lean WP Engine Staging Theme
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.06 ▼0.29 | 1.62 ▼0.42 | 41.89 ▲2.98 |
Dashboard /wp-admin | 2,198 ▲18 | 5.66 ▲0.02 | 80.45 ▼18.33 | 39.61 ▼7.65 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.00 | 39.27 ▲1.11 | 36.05 ▲0.71 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 18.04 ▼5.24 | 617.05 ▼52.68 | 63.51 ▲12.55 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.18 ▼0.04 | 97.77 ▼3.26 | 40.80 ▼5.33 |
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
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/lean-wp-engine-staging-theme/lean-wp-engine-staging-theme.php+26
Use of undefined constant WP_SITEURL - assumed 'WP_SITEURL' (this will throw an Error in a future version of PHP)
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
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
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_SITEURL - assumed 'WP_SITEURL' (this will throw an Error in a future version of PHP) in wp-content/plugins/lean-wp-engine-staging-theme/lean-wp-engine-staging-theme.php on line 26
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Requires at least: Invalid version format
- Screenshots: Add a description for screenshot #1 in lean-wp-engine-staging-theme/assets to your readme.txt
lean-wp-engine-staging-theme/lean-wp-engine-staging-theme.php 92% from 13 tests
"Lean WP Engine Staging Theme" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 156 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected50 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 25 | 27 |
CSS | 1 | 3 | 1 | 23 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected