Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.49MB] [CPU: ▼298.52ms] 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 / | 4.02 ▲0.50 | 58.49 ▲4.51 |
Dashboard /wp-admin | 3.91 ▲0.51 | 37.23 ▲3.26 |
Posts /wp-admin/edit.php | 4.14 ▲0.50 | 43.54 ▼9.56 |
Add New Post /wp-admin/post-new.php | 7.44 ▲0.47 | 96.76 ▼1,192.28 |
Media Library /wp-admin/upload.php | 3.86 ▲0.57 | 28.57 ▲5.01 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 231 new files
Database: 1 new table, 1 new option
New tables |
---|
wp_skyroom_events |
New WordPress options |
---|
skyroom_db_version |
Browser metrics Passed 4 tests
Skyroom: 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,832 ▲78 | 15.92 ▲0.30 | 6.14 ▲0.27 | 3.06 ▲0.59 |
Dashboard /wp-admin | 2,922 ▲61 | 6.26 ▼0.02 | 126.28 ▼25.70 | 201.02 ▲32.07 |
Posts /wp-admin/edit.php | 2,737 ▲46 | 3.27 ▲0.03 | 66.95 ▲1.05 | 143.00 ▼3.82 |
Add New Post /wp-admin/post-new.php | 1,702 ▲41 | 16.10 ▼0.47 | 435.59 ▲10.93 | 186.26 ▲25.72 |
Media Library /wp-admin/upload.php | 1,746 ▲51 | 5.58 ▲0.08 | 147.56 ▲2.50 | 221.53 ▲30.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_skyroom_events
- Zombie WordPress options detected upon uninstall: 1 option
- skyroom_db_version
Smoke tests 75% 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)
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
Please take a closer look at the following
- 94× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Ds\\Sequence' not found in wp-content/plugins/skyroom-wp/vendor/php-ds/php-ds/src/Deque.php:14
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Definition\\Definition' not found in wp-content/plugins/skyroom-wp/vendor/php-di/php-di/src/DI/Definition/ObjectDefinition/MethodInjection.php:13
- > PHP Fatal error
Uncaught Error: Interface 'DI\\Definition\\Definition' not found in wp-content/plugins/skyroom-wp/vendor/php-di/php-di/src/DI/Definition/StringDefinition.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/skyroom-wp/views/users.php:9
- > PHP Fatal error
Uncaught Error: Class 'DI\\Definition\\ArrayDefinition' not found in wp-content/plugins/skyroom-wp/vendor/php-di/php-di/src/DI/Definition/ArrayDefinitionExtension.php:13
- > 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 'Ds\\Sequence' not found in wp-content/plugins/skyroom-wp/vendor/php-ds/php-ds/src/Vector.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/skyroom-wp/views/login-form.php:3
- > PHP Fatal error
Uncaught Error: Class 'Skyroom\\Tables\\WPListTable' not found in wp-content/plugins/skyroom-wp/src/Skyroom/Tables/EventsTable.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/skyroom-wp/views/maintenance.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #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 principal PHP file in "Skyroom" v. 1.6.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("skyroom-wp.php" instead of "skyroom.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected15,210 lines of code in 213 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 174 | 2,336 | 6,172 | 8,998 |
JSON | 11 | 0 | 0 | 4,104 |
Markdown | 19 | 536 | 0 | 1,244 |
PO File | 1 | 165 | 180 | 375 |
JavaScript | 2 | 21 | 10 | 175 |
CSS | 3 | 36 | 15 | 153 |
YAML | 1 | 4 | 0 | 130 |
XML | 2 | 3 | 3 | 31 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were 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 | 56 | |
▷ Named functions | 12 | 21.43% |
▷ Anonymous functions | 44 | 78.57% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/icon-hover.png | 1.93KB | 1.34KB | ▼ 30.43% |
vendor/container-interop/container-interop/docs/images/interoperating_containers.png | 25.13KB | 12.83KB | ▼ 48.97% |
vendor/container-interop/container-interop/docs/images/priority.png | 15.87KB | 8.86KB | ▼ 44.20% |
admin/images/icon.png | 1.80KB | 1.34KB | ▼ 25.45% |
vendor/container-interop/container-interop/docs/images/side_by_side_containers.png | 15.88KB | 8.43KB | ▼ 46.90% |