84% simple-cyclos-leaflet-map

Code Review | Cyclos Users Map

WordPress plugin Cyclos Users Map scored84%from 54 tests.

About plugin

  • Plugin page: simple-cyclos-lea...
  • Plugin version: 1.1
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.9
  • WordPress version: 6.3.1
  • First release: Dec 28, 2017
  • Latest release: Mar 21, 2019
  • Number of updates: 17
  • Update frequency: every 27.7 days
  • Top authors: augusto1995 (88.24%)rozijntje (17.65%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /905 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.08MB] [CPU: ▼3.99ms] Passed 4 tests

This is a short check of server-side resources used by Cyclos Users Map
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0840.44 ▲4.19
Dashboard /wp-admin3.39 ▲0.0844.12 ▼1.40
Posts /wp-admin/edit.php3.44 ▲0.0845.71 ▼1.87
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.13 ▼13.72
Media Library /wp-admin/upload.php3.31 ▲0.0834.04 ▲1.02
Cyclos Users Map /wp-admin/options-general.php?page=CyclosUsersMapSettings3.2832.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cyclos Users Map
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,989 ▲24315.88 ▲1.5110.24 ▲8.4941.97 ▼2.20
Dashboard /wp-admin2,237 ▲496.19 ▲1.14100.63 ▼2.9740.43 ▼3.16
Posts /wp-admin/edit.php2,102 ▲132.94 ▲0.9138.69 ▲3.7633.00 ▼5.54
Add New Post /wp-admin/post-new.php1,542 ▲1123.47 ▲0.42672.65 ▲29.0035.42 ▼12.58
Media Library /wp-admin/upload.php1,419 ▲345.45 ▲1.2399.77 ▲1.4042.99 ▼2.55
Cyclos Users Map /wp-admin/options-general.php?page=CyclosUsersMapSettings1,0412.5730.6823.65

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 4× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/simple-cyclos-leaflet-map/simple-cyclos-leaflet-map.php
    • > /wp-content/plugins/simple-cyclos-leaflet-map/cyclosUsersMap-common.php
    • > /wp-content/plugins/simple-cyclos-leaflet-map/cyclosUsersMap-map.php
    • > /wp-content/plugins/simple-cyclos-leaflet-map/cyclosUsersMap-admin-config.php

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 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
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

simple-cyclos-leaflet-map/simple-cyclos-leaflet-map.php Passed 13 tests

The primary PHP file in "Cyclos Users Map" version 1.1 is used by WordPress to initiate all plugin functionality
77 characters long description:
Integrates a business directory map of Cyclos users into your WordPress blog.

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
Everything looks great! No dangerous files found in this plugin3,457 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript55844302,056
CSS711645937
PHP454103464

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions11
▷ Named functions11100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/search-icon.png2.91KB1.64KB▼ 43.53%
images/search-icon-mobile.png3.87KB1.20KB▼ 68.88%
icon.png1.61KB1.23KB▼ 23.38%