Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.12ms] Passed 4 tests
Server-side resources used by Zaki Sitemap
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.07 | 43.29 ▲2.26 |
Dashboard /wp-admin | 3.38 ▲0.08 | 47.36 ▲0.56 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.88 ▼0.20 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 96.40 ▲4.24 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 39.09 ▲1.87 |
Zaki Plugins /wp-admin/admin.php?page=zaki | 3.24 | 28.75 |
Sitemap /wp-admin/admin.php?page=zaki-sitemap | 3.24 | 27.42 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 8 new options
New WordPress options |
---|
category_children |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
zaki_sitemap_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Zaki Sitemap
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲93 | 13.34 ▼1.05 | 1.52 ▼1.21 | 38.18 ▼6.16 |
Dashboard /wp-admin | 2,237 ▲46 | 5.87 ▲0.96 | 99.13 ▼3.64 | 80.25 ▲35.60 |
Posts /wp-admin/edit.php | 2,123 ▲34 | 1.98 ▼0.07 | 37.78 ▲2.18 | 34.63 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.27 ▼0.24 | 733.41 ▲50.07 | 52.71 ▼7.41 |
Media Library /wp-admin/upload.php | 1,416 ▲31 | 4.20 ▼0.02 | 101.33 ▼8.95 | 71.09 ▲20.72 |
Zaki Plugins /wp-admin/admin.php?page=zaki | 806 | 2.02 | 22.95 | 27.64 |
Sitemap /wp-admin/admin.php?page=zaki-sitemap | 886 | 2.02 | 23.81 | 26.15 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- zaki_sitemap_options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- category_children
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=zaki
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ZakiPlugins::zakiPluginsMainPageHtml() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=zaki-sitemap
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=zaki-sitemap
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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 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 plugin_dir_path() in wp-content/plugins/zaki-sitemap/zaki-sitemap.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: tree, post-type, sitemap, pages, post tree...
zaki-sitemap/zaki-sitemap.php Passed 13 tests
"Zaki Sitemap" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
102 characters long description:
Plugin that show a sitemap of page/post. You can choose to show/hide categories and custom post-types.
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
No dangerous file extensions were detected373 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 38 | 359 |
CSS | 1 | 3 | 0 | 14 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 8 | |
▷ Static methods | 4 | 50.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/zaki-icon.png | 0.34KB | 0.31KB | ▼ 9.12% |