78% tct-dynamic-spreadsheet-counter-for-divi

Code Review | TCT-Dynamic-Spreadsheet-Counter-for-Divi

WordPress plugin TCT-Dynamic-Spreadsheet-Counter-for-Divi scored78%from 54 tests.

About plugin

  • Plugin page: tct-dynamic-sprea...
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.4
  • WordPress version: 6.3.1
  • First release: Nov 18, 2019
  • Latest release: May 31, 2020
  • Number of updates: 8
  • Update frequency: every 24.4 days
  • Top authors: tdrayson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /524 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.36ms] Passed 4 tests

This is a short check of server-side resources used by TCT-Dynamic-Spreadsheet-Counter-for-Divi
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.28 ▼0.25
Dashboard /wp-admin3.33 ▲0.0247.33 ▼3.04
Posts /wp-admin/edit.php3.38 ▲0.0245.01 ▼5.47
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.82 ▼12.69
Media Library /wp-admin/upload.php3.25 ▲0.0234.27 ▲0.27
Sheets Divi Counter /wp-admin/options-general.php?page=tct_ddc3.1929.65

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by TCT-Dynamic-Spreadsheet-Counter-for-Divi
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.34 ▼0.011.88 ▲0.1444.93 ▲2.31
Dashboard /wp-admin2,202 ▲225.58 ▼0.0783.69 ▼6.8336.74 ▼2.74
Posts /wp-admin/edit.php2,101 ▲42.02 ▲0.0638.94 ▲3.8335.99 ▲4.90
Add New Post /wp-admin/post-new.php1,529 ▼623.16 ▲5.11673.31 ▲75.7050.33 ▼12.07
Media Library /wp-admin/upload.php1,404 ▲74.07 ▼0.1196.01 ▲3.1441.82 ▼1.06
Sheets Divi Counter /wp-admin/options-general.php?page=tct_ddc8581.9621.6725.52

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tct_ddc
    • > Notice in wp-content/plugins/tct-dynamic-spreadsheet-counter-for-divi/TCT-Dynamic-Spreadsheet-Counter-for-Divi.php+58
    Trying to access array offset on value of type bool

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× 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/tct-dynamic-spreadsheet-counter-for-divi/TCT-Dynamic-Spreadsheet-Counter-for-Divi.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 96% from 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
No tags were found

tct-dynamic-spreadsheet-counter-for-divi/TCT-Dynamic-Spreadsheet-Counter-for-Divi.php 92% from 13 tests

The main PHP file in "TCT-Dynamic-Spreadsheet-Counter-for-Divi" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tct-dynamic-spreadsheet-counter-for-divi.php" instead of "TCT-Dynamic-Spreadsheet-Counter-for-Divi.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13710110

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.18
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 are no PNG files in this plugin