83% ciaook-share

Code Review | Ciaook Share Plugin

WordPress plugin Ciaook Share Plugin scored 83% from 54 tests.

About plugin

  • Plugin page: ciaook-share
  • Plugin version: 0.1.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 5.8.1
  • First release: Sep 29, 2017
  • Latest release: Nov 9, 2017
  • Number of updates: 8
  • Update frequency: every 6.5 days
  • Top authors: merlinjury (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 450 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Ciaook Share Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1835.77 ▲14.46
Dashboard /wp-admin3.12 ▲0.0741.24 ▼3.77
Posts /wp-admin/edit.php3.17 ▲0.0744.31 ▼1.20
Add New Post /wp-admin/post-new.php5.48 ▲0.0585.54 ▼562.89
Media Library /wp-admin/upload.php3.06 ▲0.0631.55 ▼1.18
Ciaook Share /wp-admin/options-general.php?page=ciaook_share3.0328.28

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: 8 new files
Database: no new tables, 3 new options
New WordPress options
ciaook_api_key
ciaook_version
widget_ciaook_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ciaook Share Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,686 ▲9016.18 ▲0.635.43 ▼3.1751.98 ▲2.19
Dashboard /wp-admin2,972 ▲385.86 ▼0.04134.44 ▼7.97110.29 ▼3.20
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0165.19 ▲2.7190.32 ▲2.17
Add New Post /wp-admin/post-new.php1,675 ▼819.18 ▲0.63370.35 ▼11.78110.80 ▼4.69
Media Library /wp-admin/upload.php1,812 ▲55.04 ▼0.00153.97 ▲0.96121.87 ▲8.80
Ciaook Share /wp-admin/options-general.php?page=ciaook_share1,0142.0657.1767.16

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_ciaook_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ciaook-share/ciaook_plugin.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: shortcode, rent, widget, share

ciaook-share/ciaook_plugin.php 77% from 13 tests

"Ciaook Share Plugin" version 0.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ciaook-share.php" instead of "ciaook_plugin.php")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: Please don't use more than 140 characters for the plugin description (currently 292 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin323 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP12126190
PO File23640120
CSS10013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity18.00
▷ Minimum class complexity18.00
▷ Maximum class complexity18.00
Average method complexity5.25
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.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
No PNG files were detected