79% wp-sightmap

Code Review | WP SightMap

WordPress plugin WP SightMap scored79%from 54 tests.

About plugin

  • Plugin page: wp-sightmap
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.2.1
  • WordPress version: 6.3.1
  • First release: May 14, 2019
  • Latest release: Jun 4, 2019
  • Number of updates: 5
  • Update frequency: every 7.8 days
  • Top authors: studiobyengrain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /513 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

This is a short check of server-side resources used by WP SightMap
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.20 ▼4.03
Dashboard /wp-admin3.32 ▲0.0243.57 ▼20.58
Posts /wp-admin/edit.php3.37 ▲0.0245.95 ▼0.03
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.82 ▼12.84
Media Library /wp-admin/upload.php3.24 ▲0.0231.57 ▼3.10

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WP SightMap: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,896 ▲15013.39 ▼0.994.01 ▲2.2540.02 ▼3.65
Dashboard /wp-admin2,219 ▲285.80 ▲0.91100.70 ▼14.2939.89 ▼3.39
Posts /wp-admin/edit.php2,108 ▲192.00 ▼0.0538.78 ▼4.2234.51 ▲0.94
Add New Post /wp-admin/post-new.php1,528 ▼523.56 ▲0.30644.86 ▼37.0054.63 ▼11.78
Media Library /wp-admin/upload.php1,404 ▲134.25 ▲0.1092.61 ▼17.7642.83 ▼5.69

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-sightmap/public/partials/wp-sightmap-public-display.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-sightmap/admin/partials/wp-sightmap-admin-display.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: multi-family, sightmap, real estate

wp-sightmap/wp-sightmap.php Passed 13 tests

This is the main PHP file of "WP SightMap" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
A plugin to provide SightMap integration

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
Success! There were no dangerous files found in this plugin261 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12139546256
JavaScript22274
CSS2041

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods2578.12%
▷ Protected methods00.00%
▷ Private methods721.88%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin