Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/prelauncher/includes/prelauncher-settings.php+30
Use of undefined constant TZ_TODO_FILE - assumed 'TZ_TODO_FILE' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.83MB] [CPU: ▼191.40ms] Passed 4 tests
This is a short check of server-side resources used by Prelaunchr for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼0.92 | 5.77 ▼18.92 |
Dashboard /wp-admin | 1.82 ▼1.24 | 9.13 ▼34.69 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 6.36 ▼38.14 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.62 | 6.57 ▼660.50 |
Media Library /wp-admin/upload.php | 1.82 ▼1.19 | 5.10 ▼32.26 |
Prelauncher /wp-admin/options-general.php?page=prelauncher_options | 1.82 | 5.10 |
Server storage [IO: ▲1.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 112 new files
Database: no new tables, 1 new option
New WordPress options |
---|
prelauncher-credentials |
Browser metrics Passed 4 tests
Prelaunchr for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 16.11 ▲0.14 | 8.14 ▼0.42 | 50.13 ▼0.08 |
Dashboard /wp-admin | 2,978 ▲44 | 5.88 ▼0.04 | 149.29 ▲10.60 | 121.39 ▲13.40 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.00 | 74.14 ▲9.76 | 93.32 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.63 ▼0.07 | 391.82 ▲4.63 | 115.76 ▼0.31 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.03 ▼0.00 | 150.37 ▼23.13 | 118.46 ▼8.41 |
Prelauncher /wp-admin/options-general.php?page=prelauncher_options | 1,059 | 2.06 | 59.23 | 79.61 |
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
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/prelauncher/includes/prelauncher-settings.php+30
Use of undefined constant TZ_TODO_FILE - assumed 'TZ_TODO_FILE' (this will throw an Error in a future version of PHP)
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=prelauncher_options
- > Warning in wp-content/plugins/prelauncher/includes/prelauncher-settings.php+30
Use of undefined constant TZ_TODO_FILE - assumed 'TZ_TODO_FILE' (this will throw an Error in a future version of PHP)
SRP 0% 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
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/prelauncher/lib/httpful/examples/twitter.php
- > /wp-content/plugins/prelauncher/lib/httpful/examples/showclix.php
- > /wp-content/plugins/prelauncher/lib/httpful/examples/github.php
- 31× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Trying to get property 'created-at' of non-object in wp-content/plugins/prelauncher/lib/httpful/examples/github.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'RESTful\\Exceptions\\HTTPError' not found in wp-content/plugins/prelauncher/lib/prelauncher/src/Prelauncher/Errors/Error.php:7
- > PHP Notice
Trying to get property 'name' of non-object in wp-content/plugins/prelauncher/lib/httpful/examples/github.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/prelauncher/lib/httpful/src/Httpful/Handlers/XmlHandler.php:11
- > PHP Fatal error
Uncaught Error: Class 'RESTful\\Exceptions\\Base' not found in wp-content/plugins/prelauncher/lib/restful/src/RESTful/Exceptions/MultipleResultsFound.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/prelauncher/lib/httpful/examples/showclix.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'Httpful\\Handlers\\MimeHandlerAdapter' not found in wp-content/plugins/prelauncher/lib/httpful/src/Httpful/Handlers/CsvHandler.php:9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/prelauncher/lib/httpful/examples/showclix.php on line 24
- > PHP Notice
Trying to get property 'event' of non-object in wp-content/plugins/prelauncher/lib/httpful/examples/showclix.php on line 14
- > PHP Fatal error
Uncaught Error: Class 'RESTful\\Exceptions\\Base' not found in wp-content/plugins/prelauncher/lib/restful/src/RESTful/Exceptions/HTTPError.php:12
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: launch, referrals, pre-launch, prelaunchr, social...
prelauncher/prelauncher.php 92% from 13 tests
"Prelaunchr for WordPress" version 1.0.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 216 characters long)
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
No dangerous file extensions were detected4,984 lines of code in 80 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 62 | 760 | 896 | 3,134 |
CSS | 4 | 182 | 8 | 692 |
SVG | 1 | 0 | 0 | 640 |
Markdown | 5 | 161 | 0 | 302 |
JavaScript | 1 | 22 | 0 | 105 |
JSON | 3 | 0 | 0 | 82 |
XML | 2 | 1 | 0 | 16 |
YAML | 2 | 0 | 0 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 57 | |
▷ Abstract classes | 1 | 1.75% |
▷ Concrete classes | 56 | 98.25% |
▷ Final classes | 1 | 1.79% |
Methods | 318 | |
▷ Static methods | 67 | 21.07% |
▷ Public methods | 290 | 91.19% |
▷ Protected methods | 10 | 3.14% |
▷ Private methods | 18 | 5.66% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 46 | |
▷ Global constants | 4 | 8.70% |
▷ Class constants | 42 | 91.30% |
▷ Public constants | 42 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin