68% inspectlet-websites-headmap

Code Review | Inspectlet Websites HeadMap

WordPress plugin Inspectlet Websites HeadMap scored68%from 54 tests.

About plugin

  • Plugin page: inspectlet-websit...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 5, 2014
  • Latest release: Feb 13, 2014
  • Number of updates: 8
  • Update frequency: every 1.9 days
  • Top authors: SultanICQ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /953 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼42.15ms] Passed 4 tests

Analyzing server-side resources used by Inspectlet Websites HeadMap
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0145.18 ▼3.00
Dashboard /wp-admin3.01 ▼0.3037.21 ▼27.00
Posts /wp-admin/edit.php3.01 ▼0.3532.75 ▼22.79
Add New Post /wp-admin/post-new.php3.01 ▼2.8829.62 ▼107.20
Media Library /wp-admin/upload.php3.01 ▼0.2227.45 ▼11.62

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

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

Browser metrics Passed 4 tests

Inspectlet Websites HeadMap: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲3214.35 ▲0.002.21 ▲0.0450.85 ▲3.37
Dashboard /wp-admin2,196 ▲195.61 ▼0.07128.13 ▲16.1284.21 ▲20.46
Posts /wp-admin/edit.php2,107 ▲72.04 ▲0.0050.14 ▼7.4349.49 ▲4.92
Add New Post /wp-admin/post-new.php1,409 ▼11718.07 ▼5.17674.92 ▼115.1258.15 ▼5.97
Media Library /wp-admin/upload.php1,404 ▲74.21 ▲0.04120.49 ▼0.2954.89 ▼1.39
Inspectlet Websites HeadMap /wp-admin/inspectlet.php260.420.1018.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/inspectlet-websites-headmap/inspectlet.php:19

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/inspectlet.php
    • > Network (severe)
    wp-admin/inspectlet.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: rss, featured image

inspectlet-websites-headmap/inspectlet.php 85% from 13 tests

The main file in "Inspectlet Websites HeadMap" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 209 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("inspectlet-websites-headmap.php" instead of "inspectlet.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP117778

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity2.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin