77% storemapper

Code Review | Storemapper for WordPress

WordPress plugin Storemapper for WordPress scored77%from 54 tests.

About plugin

  • Plugin page: storemapper
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Dec 5, 2017
  • Latest release: Dec 8, 2017
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: storemapper (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,742 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▼11.72ms] Passed 4 tests

Analyzing server-side resources used by Storemapper for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.10 ▼10.08
Dashboard /wp-admin3.40 ▲0.0945.41 ▼2.56
Posts /wp-admin/edit.php3.51 ▲0.1645.84 ▼12.03
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.48 ▼22.21
Media Library /wp-admin/upload.php3.32 ▲0.0935.01 ▲2.01

Server storage [IO: ▲0.04MB] [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: 20 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_wp_storemapper_widget
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Storemapper for WordPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.66 ▼0.711.75 ▼0.2742.92 ▲0.30
Dashboard /wp-admin2,243 ▲555.88 ▼0.02107.84 ▲2.3382.38 ▲39.12
Posts /wp-admin/edit.php2,129 ▲402.01 ▲0.0036.45 ▼12.2234.10 ▼15.81
Add New Post /wp-admin/post-new.php1,544 ▲2517.52 ▼5.71757.01 ▲114.7158.18 ▼0.34
Media Library /wp-admin/upload.php1,425 ▲344.25 ▲0.0499.14 ▲2.1670.66 ▲27.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_wp_storemapper_widget
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/storemapper/includes/templates/public/embed-code.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP_Storemapper\\esc_html_e() in wp-content/plugins/storemapper/includes/templates/admin/settings.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/storemapper/includes/widget.class.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Requires php: Invalid version format
  • Donate link: Please fix this invalid URI: "N/A"
  • Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6 in storemapper/assets to your readme.txt
Please take inspiration from this readme.txt

storemapper/wp-storemapper.php 85% from 13 tests

The main PHP file in "Storemapper for WordPress" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("storemapper.php" instead of "wp-storemapper.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected486 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1185252368
Markdown134071
JavaScript20747
CSS1210

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.14
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods621.43%
▷ Public methods2796.43%
▷ Protected methods00.00%
▷ Private methods13.57%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
assets/img/storemapper_icon.png0.11KB0.12KB0.00%