78% ckplayer-without-ad

Code Review | ckplayer without ad

WordPress plugin ckplayer without ad scored78%from 54 tests.

About plugin

  • Plugin page: ckplayer-without-ad
  • Plugin version: 0.60
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 24, 2014
  • Latest release: Sep 19, 2015
  • Number of updates: 13
  • Update frequency: every 23.0 days
  • Top authors: BLACKCYY (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /6,741 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by ckplayer without ad
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0142.36 ▼0.95
Dashboard /wp-admin3.36 ▲0.0249.21 ▼8.82
Posts /wp-admin/edit.php3.41 ▲0.0150.72 ▼4.52
Add New Post /wp-admin/post-new.php5.94 ▲0.0188.33 ▼10.92
Media Library /wp-admin/upload.php3.28 ▲0.0136.59 ▼1.85
ckplayer without ad /wp-admin/options-general.php?page=my-unique-identifier3.2535.49

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for ckplayer without ad
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲3514.36 ▲0.161.71 ▲0.1144.36 ▲4.01
Dashboard /wp-admin2,205 ▲285.54 ▼0.1289.87 ▲5.4441.88 ▲2.51
Posts /wp-admin/edit.php2,104 ▲12.00 ▲0.0236.68 ▼2.6534.71 ▲0.76
Add New Post /wp-admin/post-new.php1,541 ▲1324.95 ▲1.75668.47 ▼73.9574.97 ▲14.96
Media Library /wp-admin/upload.php1,407 ▲74.19 ▼0.04115.80 ▼0.8046.99 ▲1.68
ckplayer without ad /wp-admin/options-general.php?page=my-unique-identifier8172.0129.4242.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ckplayer-without-ad/ckplayer_without_ad.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=my-unique-identifier
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=my-unique-identifier 197:0 Uncaught ReferenceError: QTags is not defined

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (screenshot.png) image missing
You can take inspiration from this readme.txt

ckplayer-without-ad/ckplayer_without_ad.php 85% from 13 tests

The principal PHP file in "ckplayer without ad" v. 0.60 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ckplayer-without-ad.php" instead of "ckplayer_without_ad.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 252 characters long)

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
Everything looks great! No dangerous files found in this plugin73 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121173

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
payment.png4.37KB2.51KB▼ 42.56%