Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼1.88ms] Passed 4 tests
This is a short check of server-side resources used by AyeShortcodes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 45.91 ▲1.55 |
Dashboard /wp-admin | 3.46 ▲0.16 | 54.49 ▼2.25 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 52.95 ▲1.00 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 98.17 ▼7.80 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 41.73 ▲5.61 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
AyeShortcodes: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 13.44 ▼0.74 | 10.42 ▲8.56 | 43.77 ▲1.64 |
Dashboard /wp-admin | 2,198 ▲18 | 5.55 ▼0.12 | 90.87 ▲1.48 | 43.75 ▼0.48 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▼0.01 | 35.30 ▼2.31 | 34.93 ▲0.13 |
Add New Post /wp-admin/post-new.php | 1,528 ▼6 | 23.06 ▼0.25 | 639.16 ▼69.61 | 50.27 ▼0.60 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.19 ▼0.04 | 104.93 ▼14.98 | 46.16 ▼0.75 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ayeshortcodes/index.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 38 tag instead of maximum 10
ayeshortcodes/index.php 77% from 13 tests
Analyzing the main PHP file in "AyeShortcodes" version 0.1
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 145 characters long)
- 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: Name the main plugin file the same as the plugin slug ("ayeshortcodes.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin7,998 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 68 | 14 | 2,548 |
Sass | 15 | 109 | 37 | 2,031 |
LESS | 14 | 34 | 44 | 1,646 |
SVG | 1 | 0 | 0 | 685 |
PHP | 7 | 156 | 181 | 517 |
JavaScript | 3 | 42 | 13 | 164 |
JSON | 5 | 0 | 0 | 148 |
Markdown | 1 | 25 | 0 | 145 |
HTML | 1 | 18 | 0 | 114 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 30.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 21 | 51.22% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected