90% iran-map

Code Review | Iran Map

WordPress plugin Iran Map scored90%from 54 tests.

About plugin

  • Plugin page: iran-map
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 12, 2018
  • Latest release: Sep 12, 2018
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: alitaee (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,404 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.16MB] [CPU: ▼2.63ms] Passed 4 tests

Server-side resources used by Iran Map
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0938.11 ▼1.74
Dashboard /wp-admin3.51 ▲0.1647.94 ▼7.11
Posts /wp-admin/edit.php3.62 ▲0.2648.84 ▲4.51
Add New Post /wp-admin/post-new.php6.09 ▲0.2083.07 ▼5.21
Media Library /wp-admin/upload.php3.43 ▲0.2037.72 ▲3.53

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Iran Map
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.69 ▲0.101.81 ▲0.3742.96 ▲0.22
Dashboard /wp-admin2,202 ▲215.53 ▼0.1897.81 ▼2.4841.61 ▲2.97
Posts /wp-admin/edit.php2,116 ▲191.99 ▲0.0540.89 ▲5.8935.75 ▲1.25
Add New Post /wp-admin/post-new.php1,539 ▲822.94 ▼0.22671.06 ▼1.1168.56 ▲19.36
Media Library /wp-admin/upload.php1,419 ▲224.22 ▼0.0193.95 ▼8.6739.96 ▼4.89

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: iran, iran map, persian, farsi

iran-map/iran-map.php Passed 13 tests

"Iran Map" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
64 characters long description:
Interactive Iran Map, admin can link each city to spicific link.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin993 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP9401148806
PO File17777170
CSS5271317

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.72
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin