90% pe-panels

Code Review | PE Panels

WordPress plugin PE Panels scored90%from 54 tests.

About plugin

  • Plugin page: pe-panels
  • Plugin version: 1.09
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8
  • WordPress version: 6.3.1
  • First release: Sep 9, 2016
  • Latest release: Sep 1, 2021
  • Number of updates: 24
  • Update frequency: every 75.8 days
  • Top authors: pixelemu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

900+ active /6,744 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.14MB] [CPU: ▼8.64ms] Passed 4 tests

An overview of server-side resources used by PE Panels
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1636.05 ▼3.91
Dashboard /wp-admin3.46 ▲0.1145.05 ▼13.02
Posts /wp-admin/edit.php3.51 ▲0.1545.77 ▼2.00
Add New Post /wp-admin/post-new.php6.04 ▲0.1581.76 ▼15.63
Media Library /wp-admin/upload.php3.38 ▲0.1535.64 ▲0.76

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_pe_panels
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for PE Panels
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲12813.44 ▼0.918.84 ▲7.2039.12 ▲1.85
Dashboard /wp-admin2,195 ▲175.59 ▲0.0191.33 ▼7.6941.77 ▼2.23
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0540.40 ▲4.7936.04 ▼0.89
Add New Post /wp-admin/post-new.php1,526 ▼223.12 ▼0.03687.18 ▼38.9757.55 ▲1.22
Media Library /wp-admin/upload.php1,400 ▼04.23 ▲0.0392.69 ▼17.8344.87 ▼2.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_pe_panels
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

pe-panels/pe-panels.php Passed 13 tests

This is the main PHP file of "PE Panels" version 1.09, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
Simple Panels with blog posts and pages.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,457 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP117290653
JavaScript420969528
CSS27121276

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity99.00
▷ Minimum class complexity99.00
▷ Maximum class complexity99.00
Average method complexity25.50
▷ Minimum method complexity1.00
▷ Maximum method complexity69.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin