68% lytics-topics

Code Review | Lytics

WordPress plugin Lytics scored68%from 54 tests.

About plugin

  • Plugin page: lytics-topics
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.7
  • WordPress version: 6.3.1
  • First release: Jul 13, 2021
  • Latest release: Jul 13, 2021
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: andrewarasaki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /267 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼1.72MB] [CPU: ▼47.13ms] Passed 4 tests

A check of server-side resources used by Lytics
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.198.28 ▼34.95
Dashboard /wp-admin2.29 ▼1.0211.68 ▼38.04
Posts /wp-admin/edit.php2.29 ▼1.0711.51 ▼38.49
Add New Post /wp-admin/post-new.php2.29 ▼3.6011.99 ▼77.02
Media Library /wp-admin/upload.php2.29 ▼0.9411.40 ▼24.10
Edit Lytics Topics /wp-admin/edit-tags.php?taxonomy=lytics_topics2.2911.56

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Lytics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7114.80 ▲0.181.64 ▼0.5342.84 ▼6.82
Dashboard /wp-admin2,204 ▲135.81 ▲0.79101.51 ▼14.6037.85 ▼7.51
Posts /wp-admin/edit.php2,123 ▲521.99 ▲0.0240.21 ▲3.0435.85 ▼0.29
Add New Post /wp-admin/post-new.php1,537 ▲1823.21 ▼0.07641.20 ▼41.7748.53 ▼21.51
Media Library /wp-admin/upload.php1,392 ▲104.22 ▲0.0595.18 ▼2.8940.33 ▼3.02
Edit Lytics Topics /wp-admin/edit-tags.php?taxonomy=lytics_topics1,2692.1325.7628.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'lytics_topics' not found or invalid function name
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/edit-tags.php?taxonomy=lytics_topics
    • > Warning in wp-includes/class-wp-hook.php+310
    call_user_func_array() expects parameter 1 to be a valid callback, function 'lytics_topics' not found or invalid function name

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lytics-topics/lytics-topics.php:13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: analytics, lytics, cdp

lytics-topics/lytics-topics.php Passed 13 tests

The main file in "Lytics" v. 0.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
73 characters long description:
This plugin is for Wordpress sites that want to incorporate Lytics Topics

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151040

PHP code Passed 2 tests

An short overview of 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.38
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin