90% dmaps

Code Review | DMaps

WordPress plugin DMaps scored90%from 54 tests.

About plugin

  • Plugin page: dmaps
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Aug 21, 2014
  • Latest release: Oct 3, 2014
  • Number of updates: 21
  • Update frequency: every 2.1 days
  • Top authors: dinamiko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /854 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.18MB] [CPU: ▼17.20ms] Passed 4 tests

An overview of server-side resources used by DMaps
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1443.11 ▼2.58
Dashboard /wp-admin3.45 ▲0.1447.34 ▼9.88
Posts /wp-admin/edit.php3.57 ▲0.2151.73 ▼0.10
Add New Post /wp-admin/post-new.php4.74 ▼1.1544.57 ▼52.48
Media Library /wp-admin/upload.php3.38 ▲0.1438.37 ▼3.84
DMaps Settings /wp-admin/options-general.php?page=dmaps_settings3.3436.25

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
dmaps_version
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for DMaps
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,933 ▲16214.26 ▼0.0532.52 ▲30.5846.08 ▲4.10
Dashboard /wp-admin2,193 ▲255.63 ▲0.1186.80 ▼6.7042.33 ▲0.23
Posts /wp-admin/edit.php2,107 ▲42.02 ▲0.0740.42 ▼1.6936.38 ▼1.43
Add New Post /wp-admin/post-new.php1,529 ▲322.95 ▼0.33688.06 ▼23.5455.30 ▼5.01
Media Library /wp-admin/upload.php1,404 ▲44.26 ▲0.1499.22 ▼15.7040.47 ▼7.57
DMaps Settings /wp-admin/options-general.php?page=dmaps_settings8652.2732.8724.51

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • dmaps_version
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (DMaps Shortcode), #2 (DMaps Metabox), #3 (DMaps Settings)
The official readme.txt might help

dmaps/dmaps.php Passed 13 tests

This is the main PHP file of "DMaps" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
121 characters long description:
DMaps creates a custom metabox in post types including custom post types. Also you can create maps via [dmaps] shortcode.

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
Everything looks great! No dangerous files found in this plugin753 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5325100600
JavaScript329687
PO File1161950
CSS12016

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity27.25
▷ Minimum class complexity10.00
▷ Maximum class complexity62.00
Average method complexity3.76
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods38
▷ Static methods25.26%
▷ Public methods3694.74%
▷ Protected methods00.00%
▷ Private methods25.26%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.33MB with 0.20MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png42.99KB17.65KB▼ 58.94%
screenshot-1.png201.61KB74.70KB▼ 62.95%
screenshot-2.png96.72KB38.99KB▼ 59.69%