78% parallel-theme-extensions

Code Review | Parallel Extensions

WordPress plugin Parallel Extensions scored78%from 54 tests.

About plugin

  • Plugin page: parallel-theme-ex...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.6
  • WordPress version: 6.3.1
  • First release: Jul 4, 2017
  • Latest release: Dec 16, 2020
  • Number of updates: 16
  • Update frequency: every 78.9 days
  • Top authors: themely (100%)

Code review

54 tests

User reviews

1 review

Install metrics

800+ active /17,409 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.84ms] Passed 4 tests

Server-side resources used by Parallel Extensions
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0738.02 ▼3.65
Dashboard /wp-admin3.35 ▲0.0545.75 ▼4.02
Posts /wp-admin/edit.php3.47 ▲0.1143.34 ▼4.14
Add New Post /wp-admin/post-new.php5.93 ▲0.0579.42 ▼7.53
Media Library /wp-admin/upload.php3.27 ▲0.0534.26 ▼1.38

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 11 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_parallel_service
widget_parallel_brands
widget_parallel_testimonial
widget_recent-comments
widget_parallel_feature
widget_parallel_our_team
widget_recent-posts
db_upgraded
...

Browser metrics Passed 4 tests

An overview of browser requirements for Parallel Extensions
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.281.83 ▲0.1843.71 ▼6.58
Dashboard /wp-admin2,189 ▲95.51 ▼0.0985.00 ▼5.0636.94 ▼1.17
Posts /wp-admin/edit.php2,100 ▼02.15 ▲0.1434.22 ▼0.9131.85 ▼6.56
Add New Post /wp-admin/post-new.php1,526 ▼023.25 ▲0.08687.19 ▼22.4056.78 ▼3.22
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.03101.25 ▼0.1942.34 ▼2.85

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 11 options
    • widget_parallel_brands
    • theysaidso_admin_options
    • widget_parallel_our_team
    • db_upgraded
    • widget_parallel_service
    • widget_theysaidso_widget
    • widget_parallel_feature
    • widget_recent-comments
    • widget_recent-posts
    • widget_parallel_testimonial
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/parallel-theme-extensions/parallel-extensions.php
  • 13× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/parallel-theme-extensions/widgets/brands_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/parallel-theme-extensions/widgets/pricing_tables_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/parallel-theme-extensions/widgets/our_clients_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/parallel-theme-extensions/widgets/our_team_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/parallel-theme-extensions/widgets/stats_widget.php:7
    • > PHP Fatal error
      require(): Failed opening required 'PARALLEL_EXTENSIONS_PATHwidgets/brands_widget.php' (include_path='.:/usr/share/php') in wp-content/plugins/parallel-theme-extensions/inc/widgets.php on line 2
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/parallel-theme-extensions/widgets/service_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/parallel-theme-extensions/widgets/projects_single_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/parallel-theme-extensions/widgets/project_grid_widget.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/parallel-theme-extensions/widgets/testimonials_widget.php:7

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

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There were no tags found
You can look at the official readme.txt

parallel-theme-extensions/parallel-extensions.php 92% from 13 tests

"Parallel Extensions" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("parallel-theme-extensions.php" instead of "parallel-extensions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,077 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1394403969
JavaScript1311277
CSS10031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity11.90
▷ Minimum class complexity5.00
▷ Maximum class complexity17.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods40100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions216.67%
▷ Anonymous functions1083.33%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin