84% pe-theme-elements-info

Code Review | PE Theme Elements Info - get info about sidebars and widgets types

WordPress plugin PE Theme Elements Info - get info about sidebars and widgets types scored84%from 54 tests.

About plugin

  • Plugin page: pe-theme-elements...
  • Plugin version: 1.10
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6
  • WordPress version: 6.3.1
  • First release: Jun 18, 2019
  • Latest release: Jan 22, 2021
  • Number of updates: 14
  • Update frequency: every 44.9 days
  • Top authors: pixelemu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,124 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.74ms] Passed 4 tests

Server-side resources used by PE Theme Elements Info - get info about sidebars and widgets types
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.07 ▼3.26
Dashboard /wp-admin3.32 ▲0.0147.68 ▼10.50
Posts /wp-admin/edit.php3.37 ▲0.0149.42 ▼3.43
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.75 ▼21.78
Media Library /wp-admin/upload.php3.24 ▲0.0135.44 ▼1.50

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for PE Theme Elements Info - get info about sidebars and widgets types
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲8814.65 ▼0.001.93 ▼0.0147.51 ▲2.50
Dashboard /wp-admin2,195 ▲155.57 ▼0.0986.04 ▼14.1340.46 ▼2.96
Posts /wp-admin/edit.php2,097 ▼32.02 ▲0.0635.36 ▼4.4634.39 ▼3.12
Add New Post /wp-admin/post-new.php1,535 ▲718.15 ▼4.94631.68 ▼28.2268.05 ▼6.57
Media Library /wp-admin/upload.php1,400 ▼04.18 ▲0.0594.19 ▼25.4039.84 ▼9.55

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/pe-theme-elements-info/pe-theme-elements-info.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% 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
Attributes that need to be fixed: The official readme.txt might help

pe-theme-elements-info/pe-theme-elements-info.php 92% from 13 tests

The primary PHP file in "PE Theme Elements Info - get info about sidebars and widgets types" version 1.10 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1151959
CSS12025

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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