84% candescent

Code Review | Candescent

WordPress plugin Candescent scored 84% from 54 tests.

About plugin

  • Plugin page: candescent
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.8.0
  • WordPress version: 6.3.1
  • First release: Sep 7, 2021
  • Latest release: Sep 7, 2021
  • Number of updates: 3
  • Update frequency: every 3.7 days
  • Top authors: candescentplugin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 322 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.47ms] Passed 4 tests

Analyzing server-side resources used by Candescent
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.49 ▼2.52
Dashboard /wp-admin3.31 ▲0.0151.23 ▲4.05
Posts /wp-admin/edit.php3.36 ▲0.0043.84 ▼8.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.67 ▼7.21
Media Library /wp-admin/upload.php3.23 ▲0.0033.91 ▼0.10

Server storage [IO: ▲0.04MB] [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: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Candescent
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.74 ▼0.664.22 ▲2.2342.52 ▼0.18
Dashboard /wp-admin2,206 ▲154.81 ▼1.07112.78 ▲8.1244.46 ▼1.72
Posts /wp-admin/edit.php2,092 ▲62.05 ▼0.0137.36 ▼2.4933.08 ▼4.26
Add New Post /wp-admin/post-new.php1,678 ▲14522.02 ▼1.16662.35 ▲14.1765.08 ▲11.26
Media Library /wp-admin/upload.php1,388 ▼34.29 ▲0.09100.59 ▼0.4643.38 ▼2.51

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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 | 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× 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/candescent/candescent.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: accessibility, ease of use

candescent/candescent.php Passed 13 tests

The main PHP file in "Candescent" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
27 characters long description:
Accessibility Guidance Tool

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected418 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript974203312
Sass14050
PHP261832
JSON10023
CSS1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin