Benchmarks
Plugin footprint 65% 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.50MB] [CPU: ▲4.80ms] Passed 4 tests
An overview of server-side resources used by Skyroom
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.91 ▲0.45 | 45.67 ▲3.14 |
Dashboard /wp-admin | 3.86 ▲0.56 | 52.54 ▲6.00 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 52.20 ▲5.59 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 93.36 ▲4.46 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 42.87 ▲8.57 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 231 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_skyroom_events |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
skyroom_db_version |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Skyroom
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲85 | 13.35 ▼1.00 | 1.69 ▼0.57 | 46.22 ▼3.22 |
Dashboard /wp-admin | 2,248 ▲60 | 4.95 ▼0.95 | 124.29 ▲20.17 | 43.51 ▼0.32 |
Posts /wp-admin/edit.php | 2,133 ▲41 | 2.09 ▲0.09 | 35.44 ▲0.18 | 33.91 ▼3.79 |
Add New Post /wp-admin/post-new.php | 1,549 ▲7 | 17.75 ▼0.48 | 654.84 ▲31.30 | 49.88 ▼8.93 |
Media Library /wp-admin/upload.php | 1,433 ▲45 | 4.28 ▼0.10 | 96.21 ▼6.62 | 42.76 ▼1.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_skyroom_events
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- skyroom_db_version
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
- 94× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Definition\\Source\\DefinitionSource' not found in wp-content/plugins/skyroom-wp/vendor/php-di/php-di/src/DI/Definition/Source/Autowiring.php:14
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Factory\\RequestedEntry' not found in wp-content/plugins/skyroom-wp/vendor/php-di/php-di/src/DI/Definition/Definition.php:12
- > PHP Fatal error
Uncaught Error: Class 'Skyroom\\Tables\\WPListTable' not found in wp-content/plugins/skyroom-wp/src/Skyroom/Tables/RoomsTable.php:12
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/skyroom-wp/vendor/downshiftorg/wp-event-emitter/test/EventEmitterTest.php:5
- > PHP Fatal error
Uncaught Error: Interface 'DownShift\\WordPress\\EventEmitterInterface' not found in wp-content/plugins/skyroom-wp/vendor/downshiftorg/wp-event-emitter/src/EventEmitter.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/skyroom-wp/vendor/php-di/invoker/src/ParameterResolver/ResolverChain.php:14
- > PHP Fatal error
Uncaught Error: Interface 'Ds\\Collection' not found in wp-content/plugins/skyroom-wp/vendor/php-ds/php-ds/src/Queue.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function DI\\object() in wp-content/plugins/skyroom-wp/config.php:19
- > PHP Fatal error
Uncaught Error: Class 'Skyroom\\Menu\\AbstractSubmenu' not found in wp-content/plugins/skyroom-wp/src/Skyroom/Menu/UserSubmenu.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Invoker\\ParameterResolver\\ParameterResolver' not found in wp-content/plugins/skyroom-wp/vendor/php-di/php-di/src/DI/Invoker/DefinitionParameterResolver.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
- Screenshots: These screenshots require images: #1 (محیط افزونه اسکای روم Screenshot-1.PNG), #2 (محیط افزونه اسکای روم Screenshot-2.PNG), #3 (محیط افزونه اسکای روم Screenshot-3.PNG), #4 (محیط افزونه اسکای روم Screenshot-4.PNG)
skyroom-wp/skyroom.php 85% from 13 tests
The primary PHP file in "Skyroom" version 1.6.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("skyroom-wp.php" instead of "skyroom.php")
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
Everything looks great! No dangerous files found in this plugin19,630 lines of code in 213 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 174 | 2,338 | 6,172 | 8,996 |
JSON | 11 | 0 | 0 | 8,518 |
Markdown | 19 | 536 | 0 | 1,244 |
PO File | 1 | 165 | 180 | 375 |
JavaScript | 2 | 21 | 10 | 175 |
CSS | 3 | 36 | 15 | 161 |
YAML | 1 | 4 | 0 | 130 |
XML | 2 | 3 | 3 | 31 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 6.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 124.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 25 | |
Traits | 5 | |
Classes | 126 | |
▷ Abstract classes | 3 | 2.38% |
▷ Concrete classes | 123 | 97.62% |
▷ Final classes | 11 | 8.94% |
Methods | 844 | |
▷ Static methods | 14 | 1.66% |
▷ Public methods | 709 | 84.00% |
▷ Protected methods | 61 | 7.23% |
▷ Private methods | 74 | 8.77% |
Functions | 55 | |
▷ Named functions | 12 | 21.82% |
▷ Anonymous functions | 43 | 78.18% |
Constants | 25 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 25 | 100.00% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.20MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon-hover.png | 114.13KB | 39.92KB | ▼ 65.02% |
admin/images/error.png | 7.31KB | 7.88KB | 0.00% |
vendor/container-interop/container-interop/docs/images/side_by_side_containers.png | 15.88KB | 8.43KB | ▼ 46.90% |
vendor/container-interop/container-interop/docs/images/priority.png | 15.87KB | 8.86KB | ▼ 44.20% |
admin/images/skyroom-logo.png | 4.00KB | 2.61KB | ▼ 34.59% |