84% mona-windy-map-embed

Code Review | Mona Windy map Embed

WordPress plugin Mona Windy map Embed scored84%from 54 tests.

About plugin

  • Plugin page: mona-windy-map-embed
  • Plugin version: 1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.0.2
  • WordPress version: 6.3.1
  • First release: Nov 27, 2018
  • Latest release: Dec 31, 2018
  • Number of updates: 6
  • Update frequency: every 5.7 days
  • Top authors: thietkewebsite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,750 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.48ms] Passed 4 tests

This is a short check of server-side resources used by Mona Windy map Embed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.06 ▼3.67
Dashboard /wp-admin3.33 ▼0.0247.14 ▼19.76
Posts /wp-admin/edit.php3.38 ▲0.0254.09 ▲1.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.63 ▼11.51
Media Library /wp-admin/upload.php3.25 ▲0.0242.71 ▲5.16

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Mona Windy map Embed: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.25 ▼0.361.91 ▲0.1237.25 ▼2.67
Dashboard /wp-admin2,198 ▲185.61 ▲0.0891.82 ▼0.2338.12 ▼2.96
Posts /wp-admin/edit.php2,100 ▲32.04 ▲0.0139.48 ▼1.1538.20 ▼2.97
Add New Post /wp-admin/post-new.php1,526 ▼023.63 ▲0.12714.65 ▲37.8154.49 ▼4.67
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.0699.70 ▼1.0041.88 ▼6.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/mona-windy-map-embed/mona-windy-map-embed.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

mona-windy-map-embed/mona-windy-map-embed.php Passed 13 tests

The principal PHP file in "Mona Windy map Embed" v. 1.0 is loaded by WordPress automatically on each request
32 characters long description:
Embed map for windy.com service.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin119 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12024119

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin