79% parsijoo-map

Code Review | PARSIJOO MAP

WordPress plugin PARSIJOO MAP scored 79% from 54 tests.

About plugin

  • Plugin page: parsijoo-map
  • Plugin version: 3.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jul 2, 2018
  • Latest release: May 29, 2020
  • Number of updates: 14
  • Update frequency: every 49.8 days
  • Top authors: nasimnet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 2,206 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.18ms] Passed 4 tests

This is a short check of server-side resources used by PARSIJOO MAP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0539.74 ▼8.66
Dashboard /wp-admin3.36 ▲0.0649.17 ▼2.36
Posts /wp-admin/edit.php3.47 ▲0.1246.91 ▼1.28
Add New Post /wp-admin/post-new.php5.94 ▲0.0692.12 ▼4.43
Media Library /wp-admin/upload.php3.28 ▲0.0535.58 ▲0.73
Parsijoo MAP /wp-admin/tools.php?page=parsijoo3.3136.53

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by PARSIJOO MAP
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16213.74 ▼0.645.61 ▲3.6642.20 ▲2.72
Dashboard /wp-admin2,207 ▲225.80 ▼0.1098.81 ▼1.6839.61 ▼5.88
Posts /wp-admin/edit.php2,093 ▲12.04 ▲0.0735.38 ▼3.9633.38 ▼2.14
Add New Post /wp-admin/post-new.php1,517 ▼1617.63 ▼5.53604.18 ▼23.5948.91 ▼24.89
Media Library /wp-admin/upload.php1,392 ▲14.39 ▲0.2794.62 ▼7.5140.27 ▼4.05
Parsijoo MAP /wp-admin/tools.php?page=parsijoo8482.4442.3246.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/parsijoo-map/assets/index.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/tools.php?page=parsijoo
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught Error: Map container not found.

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: parsijoo, location, shortcode, googlemap, leaflet...

parsijoo-map/parsijoo-map.php Passed 13 tests

The main PHP file in "PARSIJOO MAP" ver. 3.0.0 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
With this plugin you can display your location on the Parsijoo MAP

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
Everything looks great! No dangerous files found in this plugin1,423 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS418532747
PHP790210496
PO File14243143
JavaScript312437

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.20
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods21
▷ Static methods1571.43%
▷ Public methods1466.67%
▷ Protected methods00.00%
▷ Private methods733.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
8 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/images/marker-icon-org.png1.43KB1.55KB0.00%
assets/css/images/marker-icon-2x-org.png2.41KB2.52KB0.00%
screenshot-1.png127.01KB126.46KB0.43%
assets/css/images/layers-2x.png1.23KB1.67KB0.00%
assets/css/images/marker-shadow.png0.60KB1.16KB0.00%