84% ff-communitymap

Code Review | FF Communitymap

WordPress plugin FF Communitymap scored 84% from 54 tests.

About plugin

  • Plugin page: ff-communitymap
  • Plugin version: 4.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.6.2
  • WordPress version: 6.3.1
  • First release: Nov 2, 2015
  • Latest release: Mar 7, 2021
  • Number of updates: 26
  • Update frequency: every 75.1 days
  • Top authors: andibraeu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 747 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.33ms] Passed 4 tests

An overview of server-side resources used by FF Communitymap
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.28 ▼8.74
Dashboard /wp-admin3.31 ▲0.0144.90 ▼7.87
Posts /wp-admin/edit.php3.36 ▲0.0048.05 ▼1.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.06 ▼11.65
Media Library /wp-admin/upload.php3.23 ▲0.0037.84 ▲3.29

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by FF Communitymap
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.25 ▼1.111.55 ▼0.4937.36 ▼14.57
Dashboard /wp-admin2,209 ▲214.83 ▼1.03100.03 ▼5.8038.90 ▼8.41
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0535.11 ▼9.2131.06 ▼5.63
Add New Post /wp-admin/post-new.php1,533 ▲1923.46 ▲5.87646.05 ▼27.3956.92 ▲4.79
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0097.96 ▲0.9644.01 ▼0.50

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
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ff-communitymap/ffcommunitymap.php:256

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: community map, wifi, freifunk

ff-communitymap/ffcommunitymap.php 92% from 13 tests

The principal PHP file in "FF Communitymap" v. 4.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ff-communitymap.php" instead of "ffcommunitymap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected6,609 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
CSS631363,083
SVG1032,846
PHP54220319
JavaScript22510212
Markdown2350149

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity1.50
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes133.33%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected