78% documapsio-sitemap-importer

Code Review | Documaps.io Sitemap Importer

WordPress plugin Documaps.io Sitemap Importer scored78%from 54 tests.

About plugin

  • Plugin page: documapsio-sitema...
  • Plugin version: 0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Jan 25, 2014
  • Latest release: Jan 26, 2014
  • Number of updates: 5
  • Update frequency: every 0.6 days
  • Top authors: documaps (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /894 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.82ms] Passed 4 tests

Server-side resources used by Documaps.io Sitemap Importer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.64 ▼3.34
Dashboard /wp-admin3.33 ▲0.0249.08 ▼3.88
Posts /wp-admin/edit.php3.38 ▲0.0271.61 ▲16.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.74 ▼15.58
Media Library /wp-admin/upload.php3.25 ▲0.0240.42 ▲3.53
Documaps.io /wp-admin/tools.php?page=documaps3.1934.46

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Documaps.io Sitemap Importer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.022.01 ▲0.1141.44 ▼1.16
Dashboard /wp-admin2,202 ▲285.63 ▼0.0387.78 ▼5.4040.47 ▼5.57
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0248.40 ▲7.2040.11 ▲2.63
Add New Post /wp-admin/post-new.php1,539 ▲1123.21 ▼0.11664.85 ▲10.8255.53 ▲3.60
Media Library /wp-admin/upload.php1,407 ▲74.24 ▲0.03112.86 ▲3.3049.32 ▲3.94
Documaps.io /wp-admin/tools.php?page=documaps8091.9928.1632.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=documaps
    • > Notice in wp-content/plugins/documapsio-sitemap-importer/documaps.php+53
    Undefined index: submit

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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/documapsio-sitemap-importer/documaps.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: import, documapsio, documaps, importer, sitemap

documapsio-sitemap-importer/documaps.php 92% from 13 tests

"Documaps.io Sitemap Importer" version 0.01's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("documapsio-sitemap-importer.php" instead of "documaps.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected121 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12952121

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin