Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/kalimah-shortcodes/kalimah-shortcodes.php+88
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.07MB] [CPU: ▼57.22ms] Passed 4 tests
An overview of server-side resources used by Kalimah Shortcodes
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.60 | 10.71 ▼29.70 |
Dashboard /wp-admin | 4.08 ▲0.74 | 14.02 ▼52.37 |
Posts /wp-admin/edit.php | 4.08 ▲0.73 | 13.17 ▼35.07 |
Add New Post /wp-admin/post-new.php | 4.08 ▼1.80 | 14.21 ▼111.74 |
Media Library /wp-admin/upload.php | 4.08 ▲0.86 | 14.89 ▼18.43 |
Server storage [IO: ▲9.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 163 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Kalimah Shortcodes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 10,938 ▲8,177 | 14.51 ▲0.21 | 27.16 ▲25.26 | 85.71 ▲44.08 |
Dashboard /wp-admin | 10,194 ▲8,017 | 4.88 ▼1.00 | 114.50 ▲23.51 | 174.81 ▲133.18 |
Posts /wp-admin/edit.php | 10,096 ▲7,996 | 2.11 ▲0.06 | 42.06 ▲2.69 | 155.87 ▲120.03 |
Add New Post /wp-admin/post-new.php | 16,232 ▲14,687 | 20.34 ▼2.80 | 930.14 ▲294.69 | 34.27 ▼19.34 |
Media Library /wp-admin/upload.php | 9,396 ▲7,996 | 4.28 ▲0.09 | 207.36 ▲104.31 | 45.58 ▼1.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/kalimah-shortcodes/kalimah-shortcodes.php+88
Trying to access array offset on value of type bool
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
require_once(): Failed opening required 'Mobile_Detect.php' (include_path='.:/usr/share/php') in wp-content/plugins/kalimah-shortcodes/includes/detect.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kalimah-shortcodes/kalimah-shortcodes.php:75
- > PHP Warning
require_once(Mobile_Detect.php): failed to open stream: No such file or directory in wp-content/plugins/kalimah-shortcodes/includes/detect.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues 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:
- Tags: There are too many tags (12 tag instead of maximum 10)
kalimah-shortcodes/kalimah-shortcodes.php Passed 13 tests
This is the main PHP file of "Kalimah Shortcodes" version 1.3.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
75 characters long description:
A premium shortcodes plugin with 40 amazingly designed shortcodes for free!
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected40,647 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 3,744 | 223 | 20,281 |
PHP | 8 | 1,381 | 1,268 | 9,576 |
SVG | 4 | 0 | 3 | 6,440 |
JavaScript | 7 | 476 | 520 | 3,510 |
PO File | 1 | 410 | 595 | 840 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 44.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 227.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 230 | |
▷ Static methods | 63 | 27.39% |
▷ Public methods | 221 | 96.09% |
▷ Protected methods | 2 | 0.87% |
▷ Private methods | 7 | 3.04% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 32 | |
▷ Global constants | 21 | 65.62% |
▷ Class constants | 11 | 34.38% |
▷ Public constants | 11 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
111 PNG files occupy 5.37MB with 2.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/patterns/green20.png | 76.23KB | 39.60KB | ▼ 48.06% |
includes/patterns/VF_aa01.png | 19.39KB | 10.72KB | ▼ 44.71% |
includes/patterns/Dotted9.png | 20.39KB | 10.72KB | ▼ 47.41% |
includes/patterns/stripes8.png | 2.96KB | 0.16KB | ▼ 94.75% |
includes/patterns/blue11.png | 56.32KB | 37.90KB | ▼ 32.71% |