Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼291.42ms] Passed 4 tests
Server-side resources used by CG Dynamic Sidebar
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.02 | 57.97 ▲5.07 |
Dashboard /wp-admin | 3.43 ▲0.03 | 37.54 ▲2.26 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 42.09 ▲0.36 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 100.92 ▼1,170.95 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 28.89 ▲2.65 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for CG Dynamic Sidebar
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,792 ▲38 | 16.01 ▲0.34 | 5.92 ▼0.56 | 2.03 ▼0.55 |
Dashboard /wp-admin | 2,904 ▲46 | 6.03 ▼0.28 | 117.81 ▼20.16 | 157.53 ▼4.08 |
Posts /wp-admin/edit.php | 2,697 ▲3 | 3.25 ▲0.01 | 66.03 ▼1.27 | 142.84 ▼1.14 |
Add New Post /wp-admin/post-new.php | 1,675 ▼15 | 19.92 ▼0.72 | 397.99 ▼46.84 | 154.10 ▼2.73 |
Media Library /wp-admin/upload.php | 1,707 ▲6 | 5.64 ▲0.11 | 139.09 ▲1.59 | 188.47 ▼1.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cg-dynamic-sidebar/cg-dynamic-sidebar.php:70
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots do not have images: #1 (**Creating new sidebar** - It show's the area in your admin widget screen from where you can add your custom sidebar), #2 (**New sidebar area** - It shows newly created sidebar area in your admin widget screen.), #3 (**Remove Widget** - It clicked on Remove Sidebar, It will ask for confirmation, if cliked on Remove, it will delete the sidebar or nothing will happen), #4 (**Adding widget to sidebar** - If you will click on any widget, it will have list of all your sidebar areas to select, you can select as per your choice and click on add widget to add in your selected sidebar. You can also drag and drop your widget in your custom created sidebar.), #5 (**Widget Added successfully** - After you added your widget to your sidebar, it will show in your custom create sidebar area.)
cg-dynamic-sidebar/cg-dynamic-sidebar.php Passed 13 tests
The entry point to "CG Dynamic Sidebar" version 1.0 is a PHP file that has certain tags in its header comment area
59 characters long description:
Plugin for creating dynamic sidebar area at wordpress admin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin173 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 3 | 15 | 109 |
JavaScript | 1 | 1 | 0 | 44 |
CSS | 1 | 8 | 0 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
5 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 9.72KB | 4.34KB | ▼ 55.41% |
screenshot-3.png | 12.54KB | 5.58KB | ▼ 55.54% |
screenshot-1.png | 10.81KB | 5.01KB | ▼ 53.64% |
screenshot-5.png | 12.80KB | 5.74KB | ▼ 55.13% |
screenshot-2.png | 11.28KB | 5.20KB | ▼ 53.88% |