90% wp-youku

Code Review | WP Youku

WordPress plugin WP Youku scored90%from 54 tests.

About plugin

  • Plugin page: wp-youku
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.9
  • WordPress version: 6.3.1
  • First release: May 11, 2014
  • Latest release: May 12, 2014
  • Number of updates: 16
  • Update frequency: every 0.2 days
  • Top authors: suifengtec (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /5,384 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
Installer ran successfully

Server metrics [RAM: ▼0.58MB] [CPU: ▼7.20ms] Passed 4 tests

This is a short check of server-side resources used by WP Youku
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0948.65 ▲9.47
Dashboard /wp-admin3.42 ▲0.1162.34 ▲8.76
Posts /wp-admin/edit.php3.54 ▲0.1859.66 ▲7.91
Add New Post /wp-admin/post-new.php3.27 ▼2.6248.82 ▼47.69
Media Library /wp-admin/upload.php3.34 ▲0.1137.53 ▲2.23
WP-Youku设置 /wp-admin/options-general.php?page=wp-youku3.3130.36

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
wp_youku_basics
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by WP Youku
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.40 ▼0.171.84 ▼0.1747.87 ▲4.78
Dashboard /wp-admin2,219 ▲395.76 ▲0.09112.73 ▲17.0947.46 ▲8.34
Posts /wp-admin/edit.php2,116 ▲162.39 ▲0.4240.35 ▲2.6740.49 ▼8.91
Add New Post /wp-admin/post-new.php6,246 ▲4,71821.13 ▼2.02966.63 ▲305.0277.31 ▲16.36
Media Library /wp-admin/upload.php1,428 ▲254.50 ▲0.32108.38 ▲4.6545.09 ▲1.37
WP-Youku设置 /wp-admin/options-general.php?page=wp-youku9192.3035.6758.20

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • wp_youku_basics
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% 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
3 plugin tags: youku, auto-blog, video

wp-youku/wp-youku.php 92% from 13 tests

"WP Youku" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 551 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin528 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5149207528

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity24.50
▷ Minimum class complexity3.00
▷ Maximum class complexity46.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods32
▷ Static methods00.00%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin