10% decorative-caps-with-series

Code Review | Decorative Caps with Series

WordPress plugin Decorative Caps with Series scored10%from 54 tests.

About plugin

  • Plugin page: decorative-caps-w...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 29, 2014
  • Latest release: Jul 19, 2015
  • Number of updates: 15
  • Update frequency: every 25.7 days
  • Top authors: RhapsodyInProse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,223 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Warning in wp-content/plugins/decorative-caps-with-series/decorative-caps-with-series.php+35
    include_once(wp-content/plugins/decorative-caps-with-series/../organize-series/orgSeries-taxonomy.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.97MB] [CPU: ▼55.23ms] Passed 4 tests

A check of server-side resources used by Decorative Caps with Series
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.28 ▼37.60
Dashboard /wp-admin2.05 ▼1.305.69 ▼54.01
Posts /wp-admin/edit.php2.05 ▼1.315.23 ▼41.77
Add New Post /wp-admin/post-new.php2.05 ▼3.846.22 ▼87.54
Media Library /wp-admin/upload.php2.05 ▼1.187.00 ▼29.33
Decorative Caps With Series /wp-admin/options-general.php?page=decorative-caps-with-series/decorative-caps-with-series.php2.056.76

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
recovery_mode_email_last_sent
db_upgraded
widget_recent-posts
can_compress_scripts
dcws_cssarray

Browser metrics Passed 4 tests

Decorative Caps with Series: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,690 ▼5613.25 ▼1.124.83 ▲3.2824.87 ▼13.64
Dashboard /wp-admin2,210 ▲184.81 ▼0.1197.49 ▼10.6538.95 ▲0.33
Posts /wp-admin/edit.php2,093 ▲41.96 ▼0.0837.96 ▲2.2832.00 ▼5.50
Add New Post /wp-admin/post-new.php45 ▼1,4740.44 ▼23.030.13 ▼661.6210.89 ▼51.90
Media Library /wp-admin/upload.php1,392 ▲44.36 ▲0.15110.44 ▼0.7660.26 ▲13.67
Decorative Caps With Series /wp-admin/options-general.php?page=decorative-caps-with-series/decorative-caps-with-series.php6891.537.3722.66

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Warning in wp-content/plugins/decorative-caps-with-series/decorative-caps-with-series.php+35
    include_once(wp-content/plugins/decorative-caps-with-series/../organize-series/orgSeries-taxonomy.php): failed to open stream: No such file or directory
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • dcws_cssarray
    • recovery_mode_email_last_sent
    • db_upgraded
    • widget_recent-posts

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
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=decorative-caps-with-series/decorative-caps-with-series.php
    • > Warning in wp-content/plugins/decorative-caps-with-series/decorative-caps-with-series.php+35
    include_once(wp-content/plugins/decorative-caps-with-series/../organize-series/orgSeries-taxonomy.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=decorative-caps-with-series/decorative-caps-with-series.php
    • > Warning in wp-content/plugins/decorative-caps-with-series/decorative-caps-with-series.php+35
    include_once(): Failed opening 'wp-content/plugins/decorative-caps-with-series/../organize-series/orgSeries-taxonomy.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/options-general.php?page=decorative-caps-with-series/decorative-caps-with-series.php
    • > User deprecated in wp-includes/functions.php+5463
    Function is_plugin_page is deprecated since version 3.1.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=decorative-caps-with-series/decorative-caps-with-series.php
    • > Notice in wp-content/plugins/decorative-caps-with-series/decorative-caps-with-series.php+54
    Undefined index: dcws_cssarray
    • > GET request to /wp-admin/options-general.php?page=decorative-caps-with-series/decorative-caps-with-series.php
    • > Error in wp-content/plugins/decorative-caps-with-series/decorative-caps-with-series.php+85
    Uncaught Error: Call to undefined function get_series_ordered() in wp-content/plugins/decorative-caps-with-series/decorative-caps-with-series.php:85
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): scs_decorative_caps_options_page()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/admin.php(259): do_action()
    #4 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
    #5 {main}
    thrown

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please 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 plugin_dir_path() in wp-content/plugins/decorative-caps-with-series/decorative-caps-with-series.php:35

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: formatting, decorative caps, initial caps, series

decorative-caps-with-series/decorative-caps-with-series.php Passed 13 tests

This is the main PHP file of "Decorative Caps with Series" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
Change the first letter of a series post to a decorative cap via css.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected155 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12964134
JavaScript15721

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.29
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%
Functions4
▷ Named functions4100.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
No PNG files were detected