Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼142.26ms] Passed 4 tests
Analyzing server-side resources used by Ciaook Share Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 35.77 ▲14.46 |
Dashboard /wp-admin | 3.12 ▲0.07 | 41.24 ▼3.77 |
Posts /wp-admin/edit.php | 3.17 ▲0.07 | 44.31 ▼1.20 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 85.54 ▼562.89 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 31.55 ▼1.18 |
Ciaook Share /wp-admin/options-general.php?page=ciaook_share | 3.03 | 28.28 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 3 new options
New WordPress options |
---|
ciaook_api_key |
ciaook_version |
widget_ciaook_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Ciaook Share Plugin
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲90 | 16.18 ▲0.63 | 5.43 ▼3.17 | 51.98 ▲2.19 |
Dashboard /wp-admin | 2,972 ▲38 | 5.86 ▼0.04 | 134.44 ▼7.97 | 110.29 ▼3.20 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 65.19 ▲2.71 | 90.32 ▲2.17 |
Add New Post /wp-admin/post-new.php | 1,675 ▼8 | 19.18 ▲0.63 | 370.35 ▼11.78 | 110.80 ▼4.69 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▼0.00 | 153.97 ▲0.96 | 121.87 ▲8.80 |
Ciaook Share /wp-admin/options-general.php?page=ciaook_share | 1,014 | 2.06 | 57.17 | 67.16 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- widget_ciaook_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ciaook-share/ciaook_plugin.php:13
- > 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 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: shortcode, rent, widget, share
ciaook-share/ciaook_plugin.php 77% from 13 tests
"Ciaook Share Plugin" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("ciaook-share.php" instead of "ciaook_plugin.php")
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: Please don't use more than 140 characters for the plugin description (currently 292 characters long)
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
Success! There were no dangerous files found in this plugin323 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 26 | 190 |
PO File | 2 | 36 | 40 | 120 |
CSS | 1 | 0 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected