84% at-internet

Code Review | AT Internet SmartTag

WordPress plugin AT Internet SmartTag scored84%from 54 tests.

About plugin

  • Plugin page: at-internet
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Feb 27, 2017
  • Latest release: Aug 7, 2019
  • Number of updates: 15
  • Update frequency: every 59.3 days
  • Top authors: BenDlz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,262 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.02ms] Passed 4 tests

Server-side resources used by AT Internet SmartTag
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2145.49 ▲3.28
Dashboard /wp-admin3.59 ▲0.2449.08 ▼19.79
Posts /wp-admin/edit.php3.64 ▲0.2851.50 ▲4.01
Add New Post /wp-admin/post-new.php6.13 ▲0.2495.48 ▼3.56
Media Library /wp-admin/upload.php3.45 ▲0.2239.76 ▲4.44
AT Internet /wp-admin/options-general.php?page=atinternet_smarttag_settings3.4234.84

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
atinternet_smarttag_version
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for AT Internet SmartTag
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲9513.42 ▼0.9517.16 ▲15.0541.69 ▼1.41
Dashboard /wp-admin2,214 ▲264.89 ▼0.96110.13 ▲6.2841.73 ▼0.20
Posts /wp-admin/edit.php2,100 ▲142.03 ▼0.0940.36 ▲3.5834.44 ▼1.63
Add New Post /wp-admin/post-new.php6,220 ▲4,70126.25 ▲3.05838.35 ▲173.4456.13 ▼9.95
Media Library /wp-admin/upload.php1,393 ▲84.22 ▼0.0398.76 ▼3.4743.19 ▲1.34
AT Internet /wp-admin/options-general.php?page=atinternet_smarttag_settings1,1163.2351.4028.91

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • atinternet_smarttag_version

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=atinternet_smarttag_settings
    • > Notice in wp-content/plugins/at-internet/includes/lib/class-atinternet-smarttag-admin-api.php+187
    Undefined index: description

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: analytics, at internet, tracking

at-internet/atinternet-smarttag.php 85% from 13 tests

"AT Internet SmartTag" version 0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("at-internet.php" instead of "atinternet-smarttag.php")

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
Everything looks great! No dangerous files found in this plugin1,040 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12275631884
PO File14248102
JavaScript416654

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.41
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods62
▷ Static methods23.23%
▷ Public methods5385.48%
▷ Protected methods00.00%
▷ Private methods914.52%
Functions1
▷ Named functions1100.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 were not PNG files found in your plugin