Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/wp-spa/includes/class-wp-spa-config.php+165
Undefined index: siteURL
Server metrics [RAM: ▲0.47MB] [CPU: ▼13.48ms] Passed 4 tests
Analyzing server-side resources used by WP-SPA
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.38 | 36.79 ▲0.17 |
Dashboard /wp-admin | 3.83 ▲0.48 | 42.95 ▼17.74 |
Posts /wp-admin/edit.php | 3.86 ▲0.50 | 43.46 ▼6.04 |
Add New Post /wp-admin/post-new.php | 6.50 ▲0.61 | 75.23 ▼28.72 |
Media Library /wp-admin/upload.php | 3.76 ▲0.53 | 33.64 ▼1.43 |
WP-SPA Settings /wp-admin/options-general.php?page=wp-spa | 3.63 | 35.08 |
Server storage [IO: ▲2.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 464 new files
Database: no new tables, 23 new options
New WordPress options |
---|
can_compress_scripts |
wp_spa_loadingScreenType |
wp_spa_enforceSmooth |
wp_spa_animationOutDuration |
wp_spa_backgroundColor |
widget_theysaidso_widget |
wp_spa_animationInName |
wp_spa_siteURL |
wp_spa_animationOutName |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-SPA
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,746 ▼0 | 13.94 ▼0.59 | 28.10 ▲26.46 | 44.92 ▲4.97 |
Dashboard /wp-admin | 2,202 ▲30 | 5.62 ▼0.11 | 83.46 ▼10.69 | 40.91 ▼2.54 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.07 | 35.69 ▼5.09 | 34.44 ▲2.49 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.53 ▲0.43 | 680.41 ▲7.79 | 65.40 ▼8.58 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.24 ▲0.01 | 107.43 ▼3.82 | 42.79 ▼2.76 |
WP-SPA Settings /wp-admin/options-general.php?page=wp-spa | 2,377 | 3.39 | 118.59 | 33.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 23 options in the database
- wp_spa_captureAll
- widget_recent-comments
- wp_spa_animationInName
- wp_spa_enforceSmooth
- wp_spa_loadingScreenType
- wp_spa_animationInDuration
- wp_spa_animationOutName
- wp_spa_animationOutDuration
- wp_spa_json_config
- wp_spa_backgroundColor
- ...
Smoke tests 50% 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)
Good news, no errors were detected
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
Please fix the following items
- 10× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-spa/vendor/rmccue/requests/examples/multiple.php
- > /wp-content/plugins/wp-spa/vendor/rmccue/requests/bin/create_pear_package.php
- > /wp-content/plugins/wp-spa/vendor/rmccue/requests/examples/cookie_jar.php
- > /wp-content/plugins/wp-spa/admin/partials/wp-spa-admin-display-heading.php
- > /wp-content/plugins/wp-spa/public/partials/wp-spa-public-display.php
- > /wp-content/plugins/wp-spa/vendor/rmccue/requests/examples/post.php
- > /wp-content/plugins/wp-spa/vendor/rmccue/requests/examples/get.php
- > /wp-content/plugins/wp-spa/vendor/rmccue/requests/examples/cookie.php
- > /wp-content/plugins/wp-spa/vendor/rmccue/requests/examples/basic-auth.php
- > /wp-content/plugins/wp-spa/vendor/rmccue/requests/examples/session.php
- 246× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-spa/vendor/monolog/monolog/tests/Monolog/Handler/CouchDBHandlerTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-spa/vendor/monolog/monolog/tests/Monolog/Handler/NativeMailerHandlerTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-spa/vendor/monolog/monolog/src/Monolog/Handler/CouchDBHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-spa/vendor/monolog/monolog/tests/Monolog/Handler/RavenHandlerTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/wp-spa/vendor/rmccue/requests/library/Requests/Exception/HTTP/407.php:13
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-spa/vendor/monolog/monolog/tests/Monolog/Handler/ErrorLogHandlerTest.php:23
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-spa/vendor/monolog/monolog/tests/Monolog/Handler/FleepHookHandlerTest.php:21
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/wp-spa/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php:22
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\TestCase' not found in wp-content/plugins/wp-spa/vendor/monolog/monolog/tests/Monolog/Handler/PHPConsoleHandlerTest.php:28
- > PHP Fatal error
Uncaught Error: Class 'Requests_Exception_HTTP' not found in wp-content/plugins/wp-spa/vendor/rmccue/requests/library/Requests/Exception/HTTP/431.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Donate link: Invalid url: "khalidhoffman.info"
wp-spa/wp-spa.php 92% from 13 tests
The primary PHP file in "WP-SPA" version 1.3.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin35,719 lines of code in 437 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 327 | 5,065 | 11,429 | 22,646 |
JavaScript | 39 | 1,092 | 1,299 | 7,498 |
Markdown | 24 | 688 | 0 | 1,837 |
HTML | 4 | 543 | 139 | 1,201 |
CSS | 6 | 61 | 44 | 1,039 |
JSON | 9 | 0 | 0 | 566 |
Stylus | 12 | 74 | 16 | 550 |
Pug | 5 | 18 | 0 | 179 |
YAML | 5 | 17 | 5 | 108 |
XML | 3 | 6 | 0 | 79 |
Bourne Shell | 2 | 4 | 0 | 12 |
Python | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.74 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 195.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 16 | |
Interfaces | 10 | |
Traits | 2 | |
Classes | 308 | |
▷ Abstract classes | 12 | 3.90% |
▷ Concrete classes | 296 | 96.10% |
▷ Final classes | 8 | 2.70% |
Methods | 1,859 | |
▷ Static methods | 117 | 6.29% |
▷ Public methods | 1,552 | 83.49% |
▷ Protected methods | 225 | 12.10% |
▷ Private methods | 82 | 4.41% |
Functions | 80 | |
▷ Named functions | 16 | 20.00% |
▷ Anonymous functions | 64 | 80.00% |
Constants | 81 | |
▷ Global constants | 3 | 3.70% |
▷ Class constants | 78 | 96.30% |
▷ Public constants | 78 | 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