Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.30ms] Passed 4 tests
This is a short check of server-side resources used by Marie Theme Front Page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.27 ▲3.97 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.50 ▼5.46 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.42 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.23 ▼11.50 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.57 ▲3.06 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Marie Theme Front Page: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.17 ▼1.20 | 1.79 ▼0.09 | 39.11 ▼8.22 |
Dashboard /wp-admin | 2,206 ▲18 | 5.86 ▲0.94 | 100.09 ▼5.02 | 36.65 ▼5.89 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.00 | 33.33 ▼3.32 | 34.07 ▲0.39 |
Add New Post /wp-admin/post-new.php | 1,534 ▲12 | 23.34 ▲0.08 | 568.08 ▼93.46 | 52.74 ▲1.67 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.20 ▲0.01 | 95.19 ▼4.39 | 42.90 ▼4.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/marie-tfp-frontpage.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/marie-frontpage-widget-two.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/marie-theme-front-page/inc/Widgets/CompanyDets.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/features.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/marie-frontpage-widget-three.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/marie-theme-front-page/inc/Widgets/Address.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/funders.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/about.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/a11y.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/marie-theme-front-page/templates/sections/heroine-alt.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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
No tags were detected
marie-theme-front-page/marie-tfp.php 92% from 13 tests
"Marie Theme Front Page" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("marie-theme-front-page.php" instead of "marie-tfp.php")
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
There were no executable files found in this plugin2,312 lines of code in 47 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 532 | 700 | 1,911 |
Sass | 5 | 29 | 10 | 304 |
JSON | 1 | 0 | 0 | 66 |
JavaScript | 2 | 2 | 1 | 30 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 1 | 5.00% |
Methods | 82 | |
▷ Static methods | 21 | 25.61% |
▷ Public methods | 78 | 95.12% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 4.88% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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 images were found in this plugin