83% thematic-maps

Code Review | Thematic Maps

WordPress plugin Thematic Maps scored83%from 54 tests.

About plugin

  • Plugin page: thematic-maps
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 6, 2018
  • Latest release: Aug 18, 2020
  • Number of updates: 15
  • Update frequency: every 59.8 days
  • Top authors: loganfive (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /615 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.87ms] Passed 4 tests

This is a short check of server-side resources used by Thematic Maps
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1042.00 ▲1.63
Dashboard /wp-admin3.41 ▲0.1155.42 ▲1.63
Posts /wp-admin/edit.php3.52 ▲0.1753.72 ▲0.16
Add New Post /wp-admin/post-new.php6.01 ▲0.1293.47 ▲0.07
Media Library /wp-admin/upload.php3.33 ▲0.1039.35 ▲3.01

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
thematic_maps_plugin
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Thematic Maps
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲17313.64 ▼0.658.26 ▲6.2943.53 ▲1.65
Dashboard /wp-admin2,232 ▲584.95 ▼0.7088.18 ▼9.1537.48 ▼1.01
Posts /wp-admin/edit.php2,121 ▲212.30 ▲0.3640.75 ▲3.9136.98 ▼1.24
Add New Post /wp-admin/post-new.php1,559 ▲3323.36 ▼0.18667.69 ▼33.2237.00 ▼17.22
Media Library /wp-admin/upload.php1,441 ▲384.41 ▲0.3294.44 ▼10.4845.06 ▲0.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

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
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/thematic-maps/public/partials/thematic-maps-public-display.php
    • > /wp-content/plugins/thematic-maps/admin/partials/thematic-maps-admin-display.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 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #1, #2 in thematic-maps/assets to your readme.txt
  • Contributors: Plugin contributors not specified
You can look at the official readme.txt

thematic-maps/thematic-maps.php 92% from 13 tests

The main PHP script in "Thematic Maps" version 1.0.4 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 280 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected441 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12178660432
JavaScript25559
CSS2080

PHP code Passed 2 tests

This is a short overview 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.12
Average class complexity3.14
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.38
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods40
▷ Static methods25.00%
▷ Public methods3587.50%
▷ Protected methods00.00%
▷ Private methods512.50%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin