83% integrate-polarsteps

Code Review | Polarsteps Integration

WordPress plugin Polarsteps Integration scored83%from 54 tests.

About plugin

  • Plugin page: integrate-polarsteps
  • Plugin version: 0.4.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2017
  • Latest release: Jan 8, 2019
  • Number of updates: 38
  • Update frequency: every 11.1 days
  • Top authors: npersonn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,973 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
Installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.20ms] Passed 4 tests

Analyzing server-side resources used by Polarsteps Integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1349.19 ▲5.38
Dashboard /wp-admin3.43 ▲0.1350.99 ▼2.93
Posts /wp-admin/edit.php3.55 ▲0.1947.76 ▲1.97
Add New Post /wp-admin/post-new.php6.02 ▲0.1384.57 ▼10.11
Media Library /wp-admin/upload.php3.36 ▲0.1334.50 ▼1.72
Polarsteps Settings /wp-admin/options-general.php?page=polarsteps-settings3.3332.47

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 286 new files
Database: 1 new table, 9 new options
New tables
wp_polarsteps
New WordPress options
polarsteps_username
widget_theysaidso_widget
polarsteps_db_version
db_upgraded
widget_recent-comments
widget_polarsteps_integration_location_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Polarsteps Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.28 ▼0.071.83 ▲0.0542.96 ▼0.32
Dashboard /wp-admin2,199 ▲255.63 ▼0.0488.64 ▼11.3142.00 ▼2.29
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0533.73 ▼2.7935.56 ▲0.63
Add New Post /wp-admin/post-new.php1,546 ▲2022.71 ▼0.69663.21 ▼7.1060.12 ▲14.53
Media Library /wp-admin/upload.php1,407 ▲44.18 ▲0.0097.39 ▼2.1042.69 ▼0.78
Polarsteps Settings /wp-admin/options-general.php?page=polarsteps-settings8312.0024.6027.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_polarsteps_integration_location_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/integrate-polarsteps/includes/class-polarsteps-integration-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 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
4 plugin tags: travelmap, travel, polarsteps, travel blog

integrate-polarsteps/polarsteps-integration.php 77% from 13 tests

The primary PHP file in "Polarsteps Integration" version 0.4.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("integrate-polarsteps.php" instead of "polarsteps-integration.php")
  • Description: The description should be shorter than 140 characters (currently 210 characters long)

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
There were no executable files found in this plugin18,181 lines of code in 273 files:
LanguageFilesBlank linesComment linesLines of code
SVG2570017,501
PHP14275720615
PO File1131547
CSS13018

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity5.45
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods3672.00%
▷ Protected methods510.00%
▷ Private methods918.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x258.png16.82KB8.45KB▼ 49.78%
assets/icon-128x128.png6.87KB4.30KB▼ 37.45%