79% zaki-sitemap

Code Review | Zaki Sitemap

WordPress plugin Zaki Sitemap scored 79% from 54 tests.

About plugin

  • Plugin page: zaki-sitemap
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.8.1
  • WordPress version: 6.3.1
  • First release: May 27, 2013
  • Latest release: May 5, 2014
  • Number of updates: 10
  • Update frequency: every 34.6 days
  • Top authors: r.conte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,060 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0743.29 ▲2.26
Dashboard /wp-admin3.38 ▲0.0847.36 ▲0.56
Posts /wp-admin/edit.php3.49 ▲0.1448.88 ▼0.20
Add New Post /wp-admin/post-new.php5.96 ▲0.0796.40 ▲4.24
Media Library /wp-admin/upload.php3.30 ▲0.0739.09 ▲1.87
Zaki Plugins /wp-admin/admin.php?page=zaki3.2428.75
Sitemap /wp-admin/admin.php?page=zaki-sitemap3.2427.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲9313.34 ▼1.051.52 ▼1.2138.18 ▼6.16
Dashboard /wp-admin2,237 ▲465.87 ▲0.9699.13 ▼3.6480.25 ▲35.60
Posts /wp-admin/edit.php2,123 ▲341.98 ▼0.0737.78 ▲2.1834.63 ▼1.22
Add New Post /wp-admin/post-new.php1,543 ▲2423.27 ▼0.24733.41 ▲50.0752.71 ▼7.41
Media Library /wp-admin/upload.php1,416 ▲314.20 ▼0.02101.33 ▼8.9571.09 ▲20.72
Zaki Plugins /wp-admin/admin.php?page=zaki8062.0222.9527.64
Sitemap /wp-admin/admin.php?page=zaki-sitemap8862.0223.8126.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP36038359
CSS13014

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 code0.28
Average class complexity9.50
▷ Minimum class complexity8.00
▷ Maximum class complexity11.00
Average method complexity3.12
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes2100.00%
Methods8
▷ Static methods450.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/zaki-icon.png0.34KB0.31KB▼ 9.12%