84% badjupiter-map

Code Review | BadJupiter Map

WordPress plugin BadJupiter Map scored84%from 54 tests.

About plugin

  • Plugin page: badjupiter-map
  • Plugin version: 1.0.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 4, 2020
  • Latest release: Apr 6, 2021
  • Number of updates: 24
  • Update frequency: every 16.6 days
  • Top authors: 5cotty (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /571 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.07ms] Passed 4 tests

Analyzing server-side resources used by BadJupiter Map
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.30 ▼3.84
Dashboard /wp-admin3.34 ▲0.0447.95 ▼8.38
Posts /wp-admin/edit.php3.39 ▲0.0449.41 ▼6.82
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.65 ▼9.25
Media Library /wp-admin/upload.php3.27 ▲0.0436.48 ▲1.07

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by BadJupiter Map
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6015.32 ▲0.9717.74 ▲16.0938.15 ▼5.24
Dashboard /wp-admin2,189 ▲125.59 ▼0.03102.72 ▲10.5344.04 ▲4.08
Posts /wp-admin/edit.php2,103 ▼02.01 ▼0.0036.45 ▼5.2831.06 ▼8.03
Add New Post /wp-admin/post-new.php1,528 ▼023.16 ▲0.09672.59 ▼5.7059.26 ▲3.32
Media Library /wp-admin/upload.php1,400 ▲34.18 ▲0.0398.83 ▼2.2042.27 ▼4.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/badjupiter-map/badjupiter-map.php:449

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (https://util.badjupiter.com/images/wp-screen-2.png), #2 (https://util.badjupiter.com/images/wp-screen-1.png)
The official readme.txt might help

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

This is the main PHP file of "BadJupiter Map" version 1.0.10, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
103 characters long description:
Embed a BadJupiter Collection directly into your post as a map of places and a QR for mobile on the go.

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 plugin297 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110555297

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin