84% smartideo

Code Review | Smartideo

WordPress plugin Smartideo scored84%from 54 tests.

About plugin

  • Plugin page: smartideo
  • Plugin version: 2.7.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 1, 2015
  • Latest release: Nov 10, 2023
  • Number of updates: 111
  • Update frequency: every 29.2 days
  • Top authors: Fens Liu (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

2,000+ active /89,108 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.06ms] Passed 4 tests

A check of server-side resources used by Smartideo
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0739.98 ▼1.03
Dashboard /wp-admin3.38 ▲0.0446.58 ▼14.95
Posts /wp-admin/edit.php3.49 ▲0.1448.18 ▲2.52
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.01 ▼1.68
Media Library /wp-admin/upload.php3.30 ▲0.0735.02 ▲1.43
Smartideo 设置 /wp-admin/plugins.php?page=smartideo_settings3.4229.76

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Smartideo
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲2614.21 ▼0.141.57 ▼0.2039.31 ▼5.29
Dashboard /wp-admin2,202 ▲215.63 ▼0.3192.22 ▼21.7645.12 ▲0.35
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0339.88 ▲4.8341.67 ▲5.64
Add New Post /wp-admin/post-new.php1,533 ▲623.03 ▼0.07655.94 ▼38.0457.99 ▲3.64
Media Library /wp-admin/upload.php1,404 ▲44.22 ▲0.0294.31 ▼6.5145.52 ▲0.02
Smartideo 设置 /wp-admin/plugins.php?page=smartideo_settings9602.0124.50107.29

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/smartideo/smartideo.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === smartideo === )
The official readme.txt might help

smartideo/smartideo.php 92% from 13 tests

"Smartideo" version 2.7.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 243 characters long)

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
Good job! No executable or dangerous file extensions detected478 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP25815438
CSS11020
JavaScript10020

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity37.00
▷ Minimum class complexity34.00
▷ Maximum class complexity40.00
Average method complexity3.77
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
PNG images were not found in this plugin