83% mapotic-community-maps

Code Review | Mapotic - Community Maps

WordPress plugin Mapotic - Community Maps scored83%from 54 tests.

About plugin

  • Plugin page: mapotic-community...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Mar 1, 2019
  • Latest release: Jun 22, 2020
  • Number of updates: 5
  • Update frequency: every 97.0 days
  • Top authors: mapotic (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /1,126 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼10.53ms] Passed 4 tests

Analyzing server-side resources used by Mapotic - Community Maps
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.88 ▼2.97
Dashboard /wp-admin3.35 ▲0.0150.40 ▼13.58
Posts /wp-admin/edit.php3.40 ▲0.0548.08 ▼4.00
Add New Post /wp-admin/post-new.php5.93 ▲0.0587.12 ▼21.56
Media Library /wp-admin/upload.php3.27 ▲0.0541.00 ▲2.54

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Mapotic - Community Maps
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.28 ▼0.291.64 ▼0.1644.45 ▼1.19
Dashboard /wp-admin2,216 ▲365.58 ▼0.0987.23 ▼3.3045.04 ▼0.45
Posts /wp-admin/edit.php2,118 ▲182.02 ▲0.0535.33 ▼3.8836.33 ▼4.65
Add New Post /wp-admin/post-new.php1,544 ▲1823.35 ▼0.28653.92 ▼45.1158.64 ▲6.30
Media Library /wp-admin/upload.php1,421 ▲214.20 ▲0.0799.89 ▼15.3546.93 ▼0.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/mapotic-community-maps/mapotic.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 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: embed, maps, mapotic

mapotic-community-maps/mapotic.php 77% from 13 tests

The entry point to "Mapotic - Community Maps" version 1.1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("mapotic-community-maps.php" instead of "mapotic.php")
  • Description: The description should be shorter than 140 characters (currently 199 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected160 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP21919136
CSS10020
SVG2004

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin