78% telecube-ringy

Code Review | TeleCube Ringy

WordPress plugin TeleCube Ringy scored78%from 54 tests.

About plugin

  • Plugin page: telecube-ringy
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.3.27+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9
  • WordPress version: 6.3.1
  • First release: Jul 17, 2018
  • Latest release: Jul 17, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: telecubeplugins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /656 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.50ms] Passed 4 tests

Server-side resources used by TeleCube Ringy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.40 ▼5.65
Dashboard /wp-admin3.33 ▼0.0243.67 ▼14.54
Posts /wp-admin/edit.php3.38 ▲0.0244.96 ▲0.46
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.18 ▼6.26
Media Library /wp-admin/upload.php3.25 ▲0.0234.65 ▲2.55
TeleCube Ringy /wp-admin/options-general.php?page=tcp_ringy3.2331.63

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: 16 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
tc-ringy-uuid
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for TeleCube Ringy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲5814.27 ▲0.011.65 ▲0.0239.47 ▼0.44
Dashboard /wp-admin2,196 ▲165.53 ▼0.1282.41 ▼7.3538.35 ▼1.44
Posts /wp-admin/edit.php2,101 ▲42.01 ▼0.0235.36 ▼2.6031.60 ▼6.15
Add New Post /wp-admin/post-new.php1,529 ▲323.01 ▼0.56667.89 ▼27.1351.11 ▼6.04
Media Library /wp-admin/upload.php1,407 ▲74.18 ▼0.11102.38 ▼5.3945.99 ▼2.53
TeleCube Ringy /wp-admin/options-general.php?page=tcp_ringy8412.0324.5925.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • tc-ringy-uuid

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/telecube-ringy/tc-ringy.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/telecube-ringy/options.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: phone call, ringy, callback, web2call, voip...

telecube-ringy/helpers.php 77% from 13 tests

The main file in "TeleCube Ringy" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("telecube-ringy.php" instead of "helpers.php")
  • Version: The plugin version is required
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
No dangerous file extensions were detected278 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG100102
PHP3146090
PO File3181880
JavaScript1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions8
▷ Named functions8100.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
There were not PNG files found in your plugin