90% clyp

Code Review | Clyp

WordPress plugin Clyp scored90%from 54 tests.

About plugin

  • Plugin page: clyp
  • Plugin version: 1.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: May 28, 2015
  • Latest release: Feb 3, 2018
  • Number of updates: 19
  • Update frequency: every 52.0 days
  • Top authors: ramiy (89.47%)clyp (15.79%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,446 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.28ms] Passed 4 tests

Analyzing server-side resources used by Clyp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.00 ▼2.29
Dashboard /wp-admin3.32 ▲0.0143.55 ▼4.98
Posts /wp-admin/edit.php3.37 ▲0.0143.34 ▼4.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.05 ▼9.43
Media Library /wp-admin/upload.php3.24 ▲0.0136.86 ▲1.78

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Clyp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.62 ▼0.771.77 ▼0.1339.85 ▼8.63
Dashboard /wp-admin2,206 ▲185.85 ▲0.8196.67 ▼8.6940.69 ▼1.28
Posts /wp-admin/edit.php2,089 ▼01.96 ▼0.0437.33 ▲0.6535.06 ▲3.23
Add New Post /wp-admin/post-new.php1,542 ▲1918.31 ▼5.05731.00 ▲48.6257.40 ▼9.18
Media Library /wp-admin/upload.php1,391 ▲34.25 ▲0.0399.55 ▼6.3842.46 ▼2.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: clyp, oembed, shortcode, audio, embed

clyp/clyp.php Passed 13 tests

The main file in "Clyp" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Embed audio from clyp.it into your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected44 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5286744

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png61.18KB16.95KB▼ 72.30%
screenshot-1.png21.81KB7.01KB▼ 67.86%