Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.38MB] [CPU: ▼1.31ms] Passed 4 tests
Analyzing server-side resources used by Maintenance, Coming Soon & Under Construction Page Builder
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.45 | 47.20 ▲6.29 |
Dashboard /wp-admin | 3.74 ▲0.39 | 54.32 ▼8.66 |
Posts /wp-admin/edit.php | 3.79 ▲0.43 | 56.47 ▲6.33 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 90.31 ▼9.19 |
Media Library /wp-admin/upload.php | 3.58 ▲0.34 | 41.00 ▲6.46 |
Templates /wp-admin/admin.php?page=site-mode&setting=templates | 3.67 | 46.22 |
Settings /wp-admin/admin.php?page=site-mode&setting=settings | 3.67 | 50.67 |
About Us /wp-admin/admin.php?page=site-mode&setting=about-us | 3.67 | 42.00 |
Site Mode /wp-admin/admin.php?page=site-mode | 3.67 | 39.49 |
Server storage [IO: ▲6.43MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 172 new files
Database: no new tables, 10 new options
New WordPress options |
---|
site_mode_integrations |
widget_theysaidso_widget |
widget_recent-posts |
site_mode_general |
theysaidso_admin_options |
db_upgraded |
site_mode_advanced |
can_compress_scripts |
site_mode_seo |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Maintenance, Coming Soon & Under Construction Page Builder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,237 ▲486 | 21.41 ▲7.21 | 181.87 ▲180.01 | 107.16 ▲62.95 |
Dashboard /wp-admin | 2,364 ▲184 | 6.50 ▲0.81 | 118.14 ▲17.93 | 93.06 ▲48.00 |
Posts /wp-admin/edit.php | 2,310 ▲207 | 3.61 ▲1.60 | 55.39 ▲14.05 | 69.97 ▲35.27 |
Add New Post /wp-admin/post-new.php | 6,239 ▲4,709 | 19.05 ▼4.08 | 916.23 ▲284.51 | 39.44 ▼25.29 |
Media Library /wp-admin/upload.php | 1,450 ▲50 | 4.39 ▲0.20 | 84.68 ▼10.07 | 81.01 ▲40.98 |
Templates /wp-admin/admin.php?page=site-mode&setting=templates | 2,332 | 10.25 | 257.65 | 55.51 |
Settings /wp-admin/admin.php?page=site-mode&setting=settings | 2,332 | 10.24 | 286.08 | 53.18 |
About Us /wp-admin/admin.php?page=site-mode&setting=about-us | 2,332 | 10.47 | 151.90 | 36.47 |
Site Mode /wp-admin/admin.php?page=site-mode | 2,331 | 9.62 | 136.26 | 66.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- site_mode_integrations
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/site-mode/admin/partials/wizard/sidebar.php
- > /wp-content/plugins/site-mode/public/partials/site-mode-public-display.php
- > /wp-content/plugins/site-mode/admin/partials/about-page.php
- 29× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(SITE_MODE_ADMINclasses/class-settings.php): failed to open stream: No such file or directory in wp-content/plugins/site-mode/admin/classes/class-site-mode-integrations.php on line 22
- > PHP Fatal error
require(): Failed opening required 'SITE_MODE_ADMINpartials/wizard/header.php' (include_path='.:/usr/share/php') in wp-content/plugins/site-mode/admin/partials/wizard/wizard.php on line 75
- > PHP Fatal error
require_once(): Failed opening required 'SITE_MODE_BLOCKSsite-mode-countdown/site-mode-countdown.php' (include_path='.:/usr/share/php') in wp-content/plugins/site-mode/blocks/init.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/site-mode/admin/partials/wizard/import-template.php:18
- > PHP Fatal error
Uncaught Error: Class 'Settings' not found in wp-content/plugins/site-mode/admin/classes/class-site-mode-design.php:22
- > PHP Warning
Use of undefined constant SITE_MODE_ADMIN - assumed 'SITE_MODE_ADMIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/site-mode/admin/partials/wizard/wizard.php on line 75
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/site-mode/admin/partials/seo-setting-page.php:25
- > PHP Warning
Use of undefined constant SITE_MODE_ADMIN - assumed 'SITE_MODE_ADMIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/site-mode/admin/classes/class-site-mode-advanced.php on line 22
- > PHP Fatal error
require_once(): Failed opening required 'SITE_MODE_ADMINclasses/class-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/site-mode/admin/classes/class-site-mode-advanced.php on line 22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/site-mode/admin/partials/main-content.php:31
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=site-mode
- > Network (severe)
https://demo.site-mode.com/?site-mode-preview=true - Failed to load resource: the server responded with a status of 503 ()
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=site-mode
- > Network (severe)
https://demo.site-mode.com/wp-json/wp/v2/users/me?context=edit&_locale=user - Failed to load resource: the server responded with a status of 401 ()
- 4 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=site-mode
- > Javascript (severe) in unknown
https://demo.site-mode.com/?site-mode-preview=true 0:0 Uncaught Object: You are not currently logged in.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== site-mode ===
) - Screenshots: These screenshots lack descriptions #11, #12, #13 in site-mode/assets to your readme.txt
site-mode/site-mode.php Passed 13 tests
"Maintenance, Coming Soon & Under Construction Page Builder" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
82 characters long description:
Create a beautiful Maintenance, Coming Soon or Under Construction Page in Seconds.
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
Everything looks great! No dangerous files found in this plugin14,611 lines of code in 127 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 45 | 318 | 154 | 4,923 |
CSS | 8 | 718 | 151 | 4,521 |
PHP | 42 | 469 | 1,699 | 3,378 |
JavaScript | 9 | 178 | 152 | 1,475 |
JSON | 22 | 5 | 0 | 284 |
Markdown | 1 | 21 | 0 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 11.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 87 | |
▷ Static methods | 2 | 2.30% |
▷ Public methods | 79 | 90.80% |
▷ Protected methods | 3 | 3.45% |
▷ Private methods | 5 | 5.75% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/sitemode-logo.png | 19.26KB | 10.24KB | ▼ 46.82% |
admin/assets/img/admin-menu-icon.png | 0.54KB | 0.37KB | ▼ 32.19% |