83% smartly

Code Review | SMARTLY

WordPress plugin SMARTLY scored83%from 54 tests.

About plugin

  • Plugin page: smartly
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2
  • WordPress version: 6.3.1
  • First release: Nov 15, 2019
  • Latest release: Nov 15, 2019
  • Number of updates: 4
  • Update frequency: every 0.8 days
  • Top authors: danbilabs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /395 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 gracefully, with no errors

Server metrics [RAM: ▲0.26MB] [CPU: ▼0.67ms] Passed 4 tests

This is a short check of server-side resources used by SMARTLY
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2639.62 ▼7.82
Dashboard /wp-admin3.56 ▲0.2651.95 ▲2.71
Posts /wp-admin/edit.php3.67 ▲0.3251.21 ▼1.51
Add New Post /wp-admin/post-new.php6.16 ▲0.2898.01 ▲6.92
Media Library /wp-admin/upload.php3.48 ▲0.2540.38 ▲3.96
Settings /wp-admin/edit.php?post_type=smartly&page=smt-settings3.4534.00
Add New /wp-admin/post-new.php?post_type=smartly3.5853.17
All Products /wp-admin/edit.php?post_type=smartly3.5240.78

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
smt_settings
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for SMARTLY
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲14913.27 ▼1.111.65 ▼0.1943.66 ▼1.11
Dashboard /wp-admin2,270 ▲885.89 ▼0.01104.02 ▼0.4438.55 ▼3.52
Posts /wp-admin/edit.php2,159 ▲702.06 ▲0.0340.64 ▲1.0732.85 ▼2.74
Add New Post /wp-admin/post-new.php1,547 ▲1323.46 ▲0.35609.49 ▼40.1454.51 ▲1.73
Media Library /wp-admin/upload.php1,453 ▲624.25 ▲0.07100.18 ▼1.5740.31 ▼7.84
Settings /wp-admin/edit.php?post_type=smartly&page=smt-settings8711.7229.1526.19
Add New /wp-admin/post-new.php?post_type=smartly2,5067.91175.2467.14
All Products /wp-admin/edit.php?post_type=smartly1,1531.9933.5330.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • smt_settings
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=smartly
    • > Notice in wp-content/plugins/smartly/includes/meta-box.php+59
    Undefined index: file_name
    • > GET request to /wp-admin/post-new.php?post_type=smartly
    • > Notice in wp-content/plugins/smartly/includes/meta-box.php+60
    Undefined index: file_type

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Invalid url: ""
  • Tags: No valid plugin tags found
The official readme.txt might help

smartly/smartly.php 85% from 13 tests

"SMARTLY" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages/")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,088 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP1014157811
PO File16568197
JavaScript1191661
CSS13019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity5.00
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods9
▷ Static methods111.11%
▷ Public methods666.67%
▷ Protected methods00.00%
▷ Private methods333.33%
Functions39
▷ Named functions39100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin