10% calconic

Code Review | Calconic Wordpress

WordPress plugin Calconic Wordpress scored10%from 54 tests.

About plugin

  • Plugin page: calconic
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8.1
  • WordPress version: 6.3.1
  • First release: Oct 12, 2017
  • Latest release: Aug 3, 2018
  • Number of updates: 11
  • Update frequency: every 27.5 days
  • Top authors: calconic (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /7,837 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/calconic/calconic.install.php+45
    Undefined variable: APIOption

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.78ms] Passed 4 tests

A check of server-side resources used by Calconic Wordpress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.50 ▲2.51
Dashboard /wp-admin3.35 ▲0.0054.05 ▼12.29
Posts /wp-admin/edit.php3.46 ▲0.1052.82 ▲1.12
Add New Post /wp-admin/post-new.php5.93 ▲0.0488.37 ▼4.89
Media Library /wp-admin/upload.php3.27 ▲0.0436.78 ▲0.96

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Calconic Wordpress: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15926.94 ▲12.58338.06 ▲336.30130.58 ▲85.43
Dashboard /wp-admin2,211 ▲345.59 ▲0.0298.62 ▲5.7951.18 ▲6.85
Posts /wp-admin/edit.php2,113 ▲101.99 ▼0.0434.44 ▼11.8534.33 ▼5.38
Add New Post /wp-admin/post-new.php1,542 ▲1623.24 ▼0.39622.42 ▼8.4454.10 ▲7.24
Media Library /wp-admin/upload.php1,419 ▲194.22 ▲0.0297.06 ▼2.8342.05 ▼3.93

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

Smoke tests 75% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/calconic/calconic.php:42

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: calculator, embed, calconic, calculator-builder

calconic/calconic.php 85% from 13 tests

This is the main PHP file of "Calconic Wordpress" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin16,909 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
JSON40011,574
JavaScript423314552,612
Markdown167101,483
Sass101623774
PHP45224288
CSS5029154
HTML132017
SVG1007

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions29
▷ Named functions29100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin