84% indomap

Code Review | indomap

WordPress plugin indomap scored84%from 54 tests.

About plugin

  • Plugin page: indomap
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2013
  • Latest release: Aug 26, 2013
  • Number of updates: 16
  • Update frequency: every 12.2 days
  • Top authors: Minda Sari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,853 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.68MB] [CPU: ▼18.77ms] Passed 4 tests

A check of server-side resources used by indomap
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.66 ▲8.58
Dashboard /wp-admin3.34 ▼0.0145.11 ▼17.80
Posts /wp-admin/edit.php3.39 ▲0.0349.03 ▲5.42
Add New Post /wp-admin/post-new.php3.12 ▼2.7738.24 ▼60.69
Media Library /wp-admin/upload.php3.26 ▲0.0336.31 ▼2.01

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

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

Browser metrics Passed 4 tests

indomap: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,883 ▲12215.09 ▲0.6910.39 ▲8.7948.28 ▲7.87
Dashboard /wp-admin2,194 ▲175.67 ▼0.00101.05 ▲12.9447.16 ▲7.73
Posts /wp-admin/edit.php2,108 ▲82.52 ▲0.5650.14 ▲12.3738.10 ▼3.92
Add New Post /wp-admin/post-new.php6,234 ▲4,70826.11 ▲2.95971.06 ▲314.9656.55 ▲5.21
Media Library /wp-admin/upload.php1,408 ▲85.03 ▲0.75100.59 ▼0.9240.09 ▼5.17

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 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 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 trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/indomap/indomap.php:13

User-side errors Passed 1 test

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

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 to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === indomap === )
The official readme.txt might help

indomap/indomap.php Passed 13 tests

The main PHP script in "indomap" version 1.0.1 is automatically included on every request by WordPress
50 characters long description:
Create Maps in Metabox Post with advanced features

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected121 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11612120
JavaScript1091

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected