84% youzign

Code Review | Youzign

WordPress plugin Youzign scored84%from 54 tests.

About plugin

  • Plugin page: youzign
  • Plugin version: 2.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Oct 12, 2015
  • Latest release: Feb 1, 2017
  • Number of updates: 8
  • Update frequency: every 62.8 days
  • Top authors: ymbproperties (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /6,132 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.41ms] 75% from 4 tests

Server-side resources used by Youzign
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,184.44ms on /wp-admin/options-general.php?page=youzign)
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0837.78 ▼2.50
Dashboard /wp-admin3.40 ▲0.0946.60 ▼1.96
Posts /wp-admin/edit.php3.51 ▲0.1551.78 ▲6.25
Add New Post /wp-admin/post-new.php5.99 ▲0.1083.78 ▼14.83
Media Library /wp-admin/upload.php3.32 ▲0.0937.07 ▲1.64
Youzign /wp-admin/options-general.php?page=youzign3.271,184.44

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Youzign
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,847 ▲7613.71 ▼0.971.78 ▼0.2839.09 ▼4.75
Dashboard /wp-admin2,225 ▲345.79 ▲0.8594.64 ▼8.0339.79 ▼0.86
Posts /wp-admin/edit.php2,114 ▲252.19 ▲0.2035.61 ▼1.5133.94 ▼0.95
Add New Post /wp-admin/post-new.php1,551 ▲2323.22 ▲0.04681.40 ▲61.3649.82 ▲2.43
Media Library /wp-admin/upload.php1,413 ▲254.24 ▲0.03100.92 ▲0.4744.10 ▲0.73
Youzign /wp-admin/options-general.php?page=youzign8442.0625.7126.27

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=youzign
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=youzign
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

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 Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: remote, media, youzign, api, media manager...

youzign/youzign.php Passed 13 tests

The main PHP file in "Youzign" ver. 2.2.0 adds more information about the plugin and also serves as the entry point for this plugin
127 characters long description:
Youzign for WordPress is a WordPress plugin that lets you import any of your Youzign designs in your WordPress posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected501 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP297144325
JavaScript14017124
CSS10052

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity46.00
▷ Minimum class complexity46.00
▷ Maximum class complexity46.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods2086.96%
▷ Protected methods00.00%
▷ Private methods313.04%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin