78% smartarget-get-followers-teaser

Code Review | Smartarget Get Followers Teaser

WordPress plugin Smartarget Get Followers Teaser scored 78% from 54 tests.

About plugin

  • Plugin page: smartarget-get-fo...
  • Plugin version: 1.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3
  • WordPress version: 6.3.1
  • First release: Nov 23, 2021
  • Latest release: Aug 9, 2023
  • Number of updates: 9
  • Update frequency: every 69.3 days
  • Top authors: erezs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 529 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.04ms] Passed 4 tests

Server-side resources used by Smartarget Get Followers Teaser
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0742.75 ▼9.85
Dashboard /wp-admin3.37 ▲0.0747.48 ▼3.99
Posts /wp-admin/edit.php3.49 ▲0.1349.73 ▲3.32
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.64 ▼12.67
Media Library /wp-admin/upload.php3.30 ▲0.0638.01 ▲2.34
Smartarget Instagram - Follow Us /wp-admin/options-general.php?page=smartarget_instagram_follow3.2634.23

Server storage [IO: ▲1.91MB] [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-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Smartarget Get Followers Teaser
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲16121.20 ▲6.929.29 ▲7.2542.89 ▼3.10
Dashboard /wp-admin2,216 ▲3110.91 ▲4.91201.14 ▲99.1842.28 ▲2.98
Posts /wp-admin/edit.php2,105 ▲167.33 ▲5.33114.55 ▲75.3533.28 ▼0.44
Add New Post /wp-admin/post-new.php1,682 ▲14928.32 ▲5.07711.99 ▲106.8149.23 ▼6.28
Media Library /wp-admin/upload.php1,395 ▲79.69 ▲5.52189.25 ▲89.7644.86 ▲2.71
Smartarget Instagram - Follow Us /wp-admin/options-general.php?page=smartarget_instagram_follow1,52610.25179.2087.61

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/smartarget-get-followers-teaser/public/partials/smartarget-instagram-follow-public-display.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_home_url() in wp-content/plugins/smartarget-get-followers-teaser/admin/partials/smartarget-instagram-follow-admin-display.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
4 plugin tags: social, social media, instagram, instagram plugin

smartarget-get-followers-teaser/smartarget-instagram-follow.php 85% from 13 tests

This is the main PHP file of "Smartarget Get Followers Teaser" version 1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("smartarget-get-followers-teaser.php" instead of "smartarget-instagram-follow.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin430 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12130522225
JavaScript351,397205
CSS1040

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin