83% plugna

Code Review | Plugna - Fun & Easy Plugin Manager

WordPress plugin Plugna - Fun & Easy Plugin Manager scored83%from 54 tests.

About plugin

  • Plugin page: plugna
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 8, 2023
  • Latest release: Mar 15, 2023
  • Number of updates: 9
  • Update frequency: every 0.8 days
  • Top authors: plugna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /270 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.91ms] Passed 4 tests

This is a short check of server-side resources used by Plugna - Fun & Easy Plugin Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.41 ▼1.46
Dashboard /wp-admin3.33 ▲0.0252.72 ▲1.36
Posts /wp-admin/edit.php3.38 ▲0.0247.23 ▲3.73
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.55 ▼2.11
Media Library /wp-admin/upload.php3.25 ▲0.0233.26 ▼1.41

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Plugna - Fun & Easy Plugin Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5013.22 ▼1.501.75 ▲0.1843.13 ▲0.57
Dashboard /wp-admin2,205 ▲145.86 ▲0.97117.08 ▲13.5569.68 ▲25.98
Posts /wp-admin/edit.php2,088 ▲21.98 ▼0.0836.29 ▲1.4332.32 ▼5.95
Add New Post /wp-admin/post-new.php1,510 ▼2317.47 ▼5.55757.48 ▲60.9061.63 ▼6.17
Media Library /wp-admin/upload.php1,381 ▼74.07 ▼0.1197.58 ▼10.8579.28 ▲34.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • 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 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/plugna/src/PlugnaApi.php
    • > /wp-content/plugins/plugna/plugin.php
    • > /wp-content/plugins/plugna/settings.php
    • > /wp-content/plugins/plugna/src/data/PlugnaPlugins.php
    • > /wp-content/plugins/plugna/src/data/PlugnaPlugin.php
    • > /wp-content/plugins/plugna/src/Plugna.php
    • > /wp-content/plugins/plugna/src/data/PlugnaSettings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Plugna plugin) image required
You can take inspiration from this readme.txt

plugna/plugin.php 85% from 13 tests

"Plugna - Fun & Easy Plugin Manager" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: Name the main plugin file the same as the plugin slug ("plugna.php" instead of "plugin.php")

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
Everything looks great! No dangerous files found in this plugin30,087 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript27,0375,64927,875
CSS12071,425
PHP7128177680
SVG2010107

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity10.60
▷ Minimum class complexity4.00
▷ Maximum class complexity30.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods60
▷ Static methods813.33%
▷ Public methods4575.00%
▷ Protected methods1525.00%
▷ Private methods00.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants10
▷ Global constants220.00%
▷ Class constants880.00%
▷ Public constants8100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
resources/images/plugin-blank.png45.40KB5.21KB▼ 88.52%