78% creatus-extended

Code Review | Creatus Extended

WordPress plugin Creatus Extended scored 78% from 54 tests.

About plugin

  • Plugin page: creatus-extended
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Feb 5, 2019
  • Latest release: Nov 24, 2020
  • Number of updates: 6
  • Update frequency: every 109.7 days
  • Top authors: Themezly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 732 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.11ms] Passed 4 tests

This is a short check of server-side resources used by Creatus Extended
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.05 ▲0.71
Dashboard /wp-admin3.34 ▲0.0445.20 ▲1.01
Posts /wp-admin/edit.php3.46 ▲0.1046.97 ▲0.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.78 ▼7.41
Media Library /wp-admin/upload.php3.27 ▲0.0433.89 ▼2.45

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 50 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Creatus Extended
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.54 ▼0.851.68 ▼0.2743.50 ▲1.42
Dashboard /wp-admin2,206 ▲145.91 ▲0.96108.45 ▼6.0338.82 ▲0.11
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.1840.45 ▲2.4435.04 ▲4.76
Add New Post /wp-admin/post-new.php1,514 ▼1917.59 ▼6.00686.62 ▼79.8758.30 ▼4.44
Media Library /wp-admin/upload.php1,388 ▲34.20 ▼0.0595.47 ▼18.2343.92 ▼3.16

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following items
  • 7× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/creatus-extended/includes/builder-templates/init.php
    • > /wp-content/plugins/creatus-extended/includes/widgets/thz-posts/class-widget-thz-posts.php
    • > /wp-content/plugins/creatus-extended/includes/widgets/thz-flickr/class-widget-thz-flickr.php
    • > /wp-content/plugins/creatus-extended/includes/builder-templates/class-thz-builder-templates.php
    • > /wp-content/plugins/creatus-extended/includes/widgets/thz-twitter/class-widget-thz-twitter.php
    • > /wp-content/plugins/creatus-extended/includes/builder-templates/views/sections.php
    • > /wp-content/plugins/creatus-extended/includes/widgets/thz-instagram/class-widget-thz-instagram.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/creatus-extended/includes/twitteroauth/twitteroauth.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Parsedown' not found in wp-content/plugins/creatus-extended/includes/parsedown/parsedownextra.php:20

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 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

creatus-extended/creatus-extended.php Passed 13 tests

This is the main PHP file of "Creatus Extended" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
138 characters long description:
Creatus Extended adds demos installation utility, page builder template library and additional functionalities to Creatus WordPress Theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin5,322 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP241,5209674,581
CSS1122424
JavaScript21106317

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity20.70
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes23
▷ Abstract classes28.70%
▷ Concrete classes2191.30%
▷ Final classes00.00%
Methods213
▷ Static methods2210.33%
▷ Public methods12659.15%
▷ Protected methods6430.05%
▷ Private methods2310.80%
Functions33
▷ Named functions3296.97%
▷ Anonymous functions13.03%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin