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: ▲1.07MB] [CPU: ▲12.32ms] Passed 4 tests
An overview of server-side resources used by اسپینپک
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.55 ▲1.09 | 57.32 ▲13.80 |
Dashboard /wp-admin | 4.37 ▲1.07 | 68.17 ▲14.81 |
Posts /wp-admin/edit.php | 4.48 ▲1.13 | 65.29 ▲10.86 |
Add New Post /wp-admin/post-new.php | 6.95 ▲1.06 | 112.96 ▲9.81 |
Media Library /wp-admin/upload.php | 4.29 ▲1.06 | 50.99 ▲16.37 |
اسپینپک /wp-admin/admin.php?page=spinpack | 4.29 | 47.67 |
Server storage [IO: ▲0.69MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 91 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
spinpack |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for اسپینپک
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 13.78 ▼1.00 | 5.37 ▲3.28 | 37.81 ▼4.78 |
Dashboard /wp-admin | 2,212 ▲24 | 4.86 ▼1.05 | 110.48 ▲2.74 | 77.13 ▲35.29 |
Posts /wp-admin/edit.php | 2,107 ▲21 | 2.02 ▼0.02 | 40.20 ▲3.13 | 37.90 ▲4.73 |
Add New Post /wp-admin/post-new.php | 1,527 ▼6 | 23.28 ▲0.14 | 641.39 ▼51.99 | 51.86 ▼13.28 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.23 ▲0.03 | 105.51 ▲1.99 | 77.50 ▲32.27 |
اسپینپک /wp-admin/admin.php?page=spinpack | 1,162 | 3.71 | 54.99 | 90.92 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- spinpack
Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: free support, support, spinpack, support button
spinpack/spinpack.php 85% from 13 tests
The main file in "اسپینپک" v. 6.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
- Domain Path: The domain path must begin with a forward slash character ("//")
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
There were no executable files found in this plugin10,020 lines of code in 84 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 72 | 2,163 | 977 | 9,222 |
PO File | 1 | 154 | 216 | 397 |
Markdown | 2 | 85 | 0 | 379 |
CSS | 2 | 4 | 0 | 15 |
SVG | 5 | 0 | 0 | 5 |
JavaScript | 2 | 2 | 2 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 21.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 6.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 180 | |
▷ Static methods | 31 | 17.22% |
▷ Public methods | 180 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 29 | 96.67% |
▷ Anonymous functions | 1 | 3.33% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |