Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.88MB] [CPU: ▲1.77ms] Passed 4 tests
A check of server-side resources used by Pressmodo Themes Onboarding
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.92 | 48.67 ▲6.27 |
Dashboard /wp-admin | 4.22 ▲0.91 | 60.62 ▲8.60 |
Posts /wp-admin/edit.php | 4.27 ▲0.91 | 54.86 ▲8.16 |
Add New Post /wp-admin/post-new.php | 6.74 ▲0.85 | 88.14 ▼15.96 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 45.52 ▲12.27 |
Get started /wp-admin/themes.php?page=pressmodo-onboarding | 4.17 | 41.41 |
Server storage [IO: ▲3.62MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 334 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Pressmodo Themes Onboarding
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.70 ▲0.56 | 1.72 ▼0.30 | 40.82 ▼4.52 |
Dashboard /wp-admin | 2,199 ▲31 | 5.57 ▲0.03 | 92.13 ▼18.97 | 40.55 ▼0.49 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.02 ▼0.01 | 37.94 ▲2.47 | 34.90 ▼3.10 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 18.01 ▼4.98 | 625.99 ▼43.33 | 75.76 ▲22.43 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▼0.12 | 97.25 ▼11.18 | 42.56 ▼8.71 |
Get started /wp-admin/themes.php?page=pressmodo-onboarding | 878 | 4.79 | 127.70 | 57.14 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 94× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Laminas\\Diactoros\\Exception\\ExceptionInterface' not found in wp-content/plugins/pressmodo-onboarding/vendor/laminas/laminas-diactoros/src/Exception/InvalidStreamPointerPositionException.php:10
- > PHP Fatal error
Uncaught Error: Class 'Laminas\\Diactoros\\Response' not found in wp-content/plugins/pressmodo-onboarding/vendor/laminas/laminas-diactoros/src/Response/JsonResponse.php:27
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ServerRequestFactoryInterface' not found in wp-content/plugins/pressmodo-onboarding/vendor/laminas/laminas-diactoros/src/ServerRequestFactory.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/pressmodo-onboarding/vendor/laminas/laminas-diactoros/src/CallbackStream.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/pressmodo-onboarding/src/Installers/QuietInstallerSkin.php:14
- > PHP Fatal error
Uncaught Error: Class 'Pressmodo\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/pressmodo-onboarding/vendor/pressmodo/wp-requirements/src/Checker/WordPress.php:20
- > PHP Fatal error
Uncaught Error: Class 'League\\Route\\Http\\Exception' not found in wp-content/plugins/pressmodo-onboarding/vendor/league/route/src/Http/Exception/BadRequestException.php:8
- > PHP Fatal error
Uncaught Error: Class 'League\\Route\\Http\\Exception' not found in wp-content/plugins/pressmodo-onboarding/vendor/league/route/src/Http/Exception/ConflictException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'League\\Route\\Http\\Exception\\HttpExceptionInterface' not found in wp-content/plugins/pressmodo-onboarding/vendor/league/route/src/Http/Exception.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Laminas\\Diactoros\\Exception\\ExceptionInterface' not found in wp-content/plugins/pressmodo-onboarding/vendor/laminas/laminas-diactoros/src/Exception/UnwritableStreamException.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 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
6 plugin tags: import, themes, pressmodo, demo, onboarding...
pressmodo-onboarding/pressmodo-onboarding.php Passed 13 tests
"Pressmodo Themes Onboarding" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
94 characters long description:
Import Pressmodo official themes demo content, widgets and theme settings with just one click.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected20,451 lines of code in 308 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 194 | 2,509 | 5,868 | 9,144 |
Markdown | 46 | 1,782 | 0 | 3,935 |
Sass | 27 | 539 | 245 | 2,319 |
XML | 9 | 8 | 1 | 2,185 |
JSON | 2 | 0 | 0 | 1,160 |
SVG | 3 | 0 | 0 | 687 |
JavaScript | 9 | 300 | 123 | 543 |
YAML | 10 | 41 | 10 | 252 |
HTML | 6 | 27 | 23 | 162 |
CSS | 2 | 0 | 3 | 64 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 7.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 155.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 36 | |
Interfaces | 34 | |
Traits | 9 | |
Classes | 118 | |
▷ Abstract classes | 5 | 4.24% |
▷ Concrete classes | 113 | 95.76% |
▷ Final classes | 7 | 6.19% |
Methods | 704 | |
▷ Static methods | 110 | 15.62% |
▷ Public methods | 578 | 82.10% |
▷ Protected methods | 33 | 4.69% |
▷ Private methods | 93 | 13.21% |
Functions | 73 | |
▷ Named functions | 43 | 58.90% |
▷ Anonymous functions | 30 | 41.10% |
Constants | 36 | |
▷ Global constants | 5 | 13.89% |
▷ Class constants | 31 | 86.11% |
▷ Public constants | 30 | 96.77% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/league/route/docs/assets/images/code.png | 48.46KB | 15.27KB | ▼ 68.49% |