84% metricspot-seo-leads

Code Review | MetricSpot SEO Leads

WordPress plugin MetricSpot SEO Leads scored84%from 54 tests.

About plugin

  • Plugin page: metricspot-seo-leads
  • Plugin version: 2017.09.25
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Sep 28, 2017
  • Latest release: Sep 28, 2017
  • Number of updates: 31
  • Update frequency: N/A
  • Top authors: angeldiazibarra (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by MetricSpot SEO Leads
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0148.60 ▼3.62
Dashboard /wp-admin3.58 ▲0.0161.43 ▲6.78
Posts /wp-admin/edit.php3.69 ▲0.0154.56 ▲0.42
Add New Post /wp-admin/post-new.php6.16 ▲0.0189.32 ▼16.09
Media Library /wp-admin/upload.php3.50 ▲0.0142.98 ▲4.73

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

MetricSpot SEO Leads: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,861 ▲10014.44 ▲0.0725.51 ▲23.2742.40 ▼8.16
Dashboard /wp-admin2,237 ▲575.59 ▼0.0085.90 ▼6.7239.08 ▼5.76
Posts /wp-admin/edit.php2,097 ▼32.01 ▼0.0439.18 ▼1.7134.61 ▼1.82
Add New Post /wp-admin/post-new.php1,547 ▲2123.21 ▲5.52683.67 ▲40.8056.55 ▲1.95
Media Library /wp-admin/upload.php1,391 ▼94.22 ▼0.05102.34 ▼6.5342.98 ▼2.73

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/metricspot-seo-leads/seo-leads.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
5 plugin tags: conversions, leads, seo, marketing, metricspot

metricspot-seo-leads/seo-leads.php 85% from 13 tests

The entry point to "MetricSpot SEO Leads" version 2017.09.25 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("metricspot-seo-leads.php" instead of "seo-leads.php")

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
Everything looks great! No dangerous files found in this plugin38 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1223538

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin