84% bsplaces

Code Review | BSPlaces

WordPress plugin BSPlaces scored84%from 54 tests.

About plugin

  • Plugin page: bsplaces
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 20, 2014
  • Latest release: Mar 23, 2014
  • Number of updates: 8
  • Update frequency: every 21.6 days
  • Top authors: mnezerka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,266 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.95MB] [CPU: ▼27.87ms] Passed 4 tests

Analyzing server-side resources used by BSPlaces
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.329.57 ▼30.28
Dashboard /wp-admin3.39 ▲0.0943.21 ▼12.03
Posts /wp-admin/edit.php3.51 ▲0.1547.34 ▼2.59
Add New Post /wp-admin/post-new.php3.24 ▼2.6435.10 ▼66.59
Media Library /wp-admin/upload.php3.32 ▲0.0935.27 ▼1.52

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for BSPlaces
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲18714.56 ▲0.0015.14 ▲13.2441.58 ▼2.38
Dashboard /wp-admin2,209 ▲214.83 ▼1.0495.24 ▼23.3137.38 ▼7.86
Posts /wp-admin/edit.php2,089 ▼02.03 ▲0.0238.51 ▲4.2436.58 ▲2.06
Add New Post /wp-admin/post-new.php6,217 ▲4,69418.84 ▼4.39852.61 ▲171.0654.99 ▼1.92
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.0195.96 ▼13.6041.25 ▼5.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/bsplaces/bsplaces.php:135

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: track, gpx, location

bsplaces/bsplaces.php Passed 13 tests

"BSPlaces" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
134 characters long description:
WP extension for attaching gps location and track (gpx) information to posts and pages. Default visualization engine is "api.mapy.cz".

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin514 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP210081435
JavaScript15449
PO File16830

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity15.25
▷ Minimum class complexity2.00
▷ Maximum class complexity26.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin