74% listic-listicle-creator

Code Review | Listic Listicle Creator

WordPress plugin Listic Listicle Creator scored74%from 54 tests.

About plugin

  • Plugin page: listic-listicle-c...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 12, 2015
  • Latest release: Oct 13, 2015
  • Number of updates: 9
  • Update frequency: N/A
  • Top authors: ebernstein (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /949 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.98MB] [CPU: ▼57.91ms] Passed 4 tests

A check of server-side resources used by Listic Listicle Creator
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.454.67 ▼36.56
Dashboard /wp-admin2.08 ▼1.315.80 ▼56.22
Posts /wp-admin/edit.php2.08 ▼1.326.43 ▼46.59
Add New Post /wp-admin/post-new.php2.08 ▼3.855.81 ▼92.25
Media Library /wp-admin/upload.php2.08 ▼1.195.06 ▼31.54

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Listic Listicle Creator
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,902 ▲16713.41 ▼0.948.81 ▲6.9341.08 ▼2.20
Dashboard /wp-admin2,206 ▲295.61 ▼0.0784.25 ▼10.5239.28 ▼0.80
Posts /wp-admin/edit.php2,111 ▲112.01 ▲0.0336.49 ▼5.2733.94 ▼5.64
Add New Post /wp-admin/post-new.php1,530 ▼1922.95 ▲4.68664.53 ▼21.1054.44 ▼12.21
Media Library /wp-admin/upload.php1,408 ▲84.30 ▲0.11107.52 ▲0.8047.64 ▲5.71

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the listic_js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_script() in wp-content/plugins/listic-listicle-creator/listicle.php:17

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 96% from 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: listicle, pagination, multi-page

listic-listicle-creator/listicle.php 92% from 13 tests

This is the main PHP file of "Listic Listicle Creator" version 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:
  • Main file name: The principal plugin file should be the same as the plugin slug ("listic-listicle-creator.php" instead of "listicle.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin72 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1283852
CSS13015
JavaScript1705

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected