Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▼19.17ms] Passed 4 tests
An overview of server-side resources used by mygallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.64 ▼4.61 |
Dashboard /wp-admin | 3.13 ▼0.22 | 28.06 ▼33.85 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 34.82 ▼10.77 |
Add New Post /wp-admin/post-new.php | 5.51 ▼0.38 | 71.90 ▼26.34 |
Media Library /wp-admin/upload.php | 3.22 ▼0.01 | 28.81 ▼5.70 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
mygallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲61 | 14.35 ▼0.01 | 1.56 ▼0.25 | 36.81 ▼9.44 |
Dashboard /wp-admin | 2,198 ▲26 | 5.54 ▼0.17 | 99.98 ▼11.39 | 80.15 ▲36.67 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 1.97 ▲0.04 | 39.56 ▲0.95 | 35.35 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.25 ▲0.08 | 720.99 ▲61.42 | 62.84 ▲4.61 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.12 ▼0.07 | 108.57 ▲13.35 | 72.66 ▲30.73 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 17× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/ahmeti-wp-timeline/Admin/Settings/EditSettingsPost.php
- > /wp-content/plugins/ahmeti-wp-timeline/Admin/Settings/EditSettingsForm.php
- > /wp-content/plugins/ahmeti-wp-timeline/AhmetiWpTimelineFunction.php
- > /wp-content/plugins/ahmeti-wp-timeline/Admin/Event/EventList.php
- > /wp-content/plugins/ahmeti-wp-timeline/Admin/Group/GroupList.php
- > /wp-content/plugins/ahmeti-wp-timeline/footer.php
- > /wp-content/plugins/ahmeti-wp-timeline/Admin/Event/EditEventForm.php
- > /wp-content/plugins/ahmeti-wp-timeline/Admin/Group/NewGroupForm.php
- > /wp-content/plugins/ahmeti-wp-timeline/Admin/Event/EditEventPost.php
- > /wp-content/plugins/ahmeti-wp-timeline/header.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/ahmeti-wp-timeline/index.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (Eklenti Çıktısı)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== ahmeti-wp-timeline ===
)
ahmeti-wp-timeline/AhmetiWpTimelineFunction.php 92% from 13 tests
The entry point to "mygallery" version 0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ahmeti-wp-timeline.php" instead of "AhmetiWpTimelineFunction.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,927 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 359 | 152 | 1,072 |
JavaScript | 6 | 38 | 46 | 220 |
CSS | 5 | 44 | 43 | 218 |
HTML | 1 | 33 | 1 | 186 |
PO File | 1 | 54 | 5 | 133 |
Markdown | 1 | 42 | 0 | 98 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
30 PNG files occupy 0.38MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Admin/Css/smoothness/images/ui-bg_glass_75_dadada_1x400.png | 0.26KB | 0.16KB | ▼ 38.93% |
Admin/Css/smoothness/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
screenshot-2.png | 20.84KB | 16.52KB | ▼ 20.72% |
images/delete.png | 0.74KB | 0.64KB | ▼ 13.55% |
screenshot-5.png | 40.21KB | 38.93KB | ▼ 3.17% |