90% pen-extra-features

Code Review | Pen

WordPress plugin Pen scored90%from 54 tests.

About plugin

  • Plugin page: pen-extra-features
  • Plugin version: 1.1.4
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-6.4
  • WordPress version: 6.3.1
  • First release: Jul 18, 2019
  • Latest release: Nov 5, 2023
  • Number of updates: 31
  • Update frequency: every 51.2 days
  • Top authors: htmlpie (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

3,000+ active /50,126 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.33MB] [CPU: ▼1.74ms] Passed 4 tests

This is a short check of server-side resources used by Pen
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1939.95 ▼0.46
Dashboard /wp-admin3.66 ▲0.3652.83 ▲4.92
Posts /wp-admin/edit.php3.78 ▲0.4247.63 ▼1.08
Add New Post /wp-admin/post-new.php6.28 ▲0.4084.68 ▼7.61
Media Library /wp-admin/upload.php3.59 ▲0.3638.24 ▲2.19
Layout /wp-admin/admin.php?page=pen-extra-features-layout3.5633.50
Addons 2 /wp-admin/admin.php?page=pen-extra-features-addons3.5634.00
Customization Import /wp-admin/admin.php?page=pen-extra-features-import3.5633.80
Content Customization /wp-admin/admin.php?page=pen-extra-features-overview3.5634.53
Style /wp-admin/admin.php?page=pen-extra-features3.5632.10

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Pen
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7013.94 ▼0.411.70 ▲0.0445.64 ▼2.78
Dashboard /wp-admin2,240 ▲635.66 ▲0.0188.21 ▼14.7441.20 ▼1.32
Posts /wp-admin/edit.php2,142 ▲391.95 ▼0.0736.89 ▼0.9234.14 ▲0.55
Add New Post /wp-admin/post-new.php1,562 ▲3623.16 ▼0.03673.05 ▼21.8755.94 ▲0.17
Media Library /wp-admin/upload.php1,442 ▲424.19 ▲0.0098.10 ▼2.6043.05 ▼0.80
Layout /wp-admin/admin.php?page=pen-extra-features-layout8262.0425.6131.16
Addons 2 /wp-admin/admin.php?page=pen-extra-features-addons8272.0124.3232.61
Customization Import /wp-admin/admin.php?page=pen-extra-features-import8272.0427.4125.63
Content Customization /wp-admin/admin.php?page=pen-extra-features-overview8302.0124.3428.66
Style /wp-admin/admin.php?page=pen-extra-features8272.0425.0427.42

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 22 tag instead of maximum 10
The official readme.txt is a good inspiration

pen-extra-features/pen-extra-features.php Passed 13 tests

The primary PHP file in "Pen" version 1.1.4 is used by WordPress to initiate all plugin functionality
58 characters long description:
This plugin adds more features to the fantastic Pen theme.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected6,062 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP231805793,764
CSS82022,069
JavaScript1200229

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity13.67
▷ Minimum class complexity10.00
▷ Maximum class complexity18.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
backend/assets/img/hpcf_128x128.png9.05KB4.47KB▼ 50.60%
backend/assets/img/services_128x128.png9.75KB4.96KB▼ 49.19%
backend/assets/img/dm_128x128.png1.20KB1.91KB0.00%