84% parvin-poems

Code Review | Parvin Poems

WordPress plugin Parvin Poems scored84%from 54 tests.

About plugin

  • Plugin page: parvin-poems
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.8.2
  • WordPress version: 6.3.1
  • First release: Jan 5, 2022
  • Latest release: Jan 5, 2022
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: amirrezashams (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲1.10MB] [CPU: ▼0.56ms] Passed 4 tests

Analyzing server-side resources used by Parvin Poems
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5443.41 ▲7.08
Dashboard /wp-admin4.71 ▲1.4050.11 ▲2.93
Posts /wp-admin/edit.php4.77 ▲1.4247.92 ▼1.92
Add New Post /wp-admin/post-new.php6.93 ▲1.0584.58 ▼3.68
Media Library /wp-admin/upload.php4.71 ▲1.4834.19 ▲0.43

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

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

Browser metrics Passed 4 tests

Parvin Poems: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.37 ▲0.021.73 ▼0.6544.45 ▼6.45
Dashboard /wp-admin2,191 ▲145.64 ▼0.0299.16 ▲3.0948.64 ▲6.56
Posts /wp-admin/edit.php2,102 ▲21.98 ▼0.0138.64 ▲2.1736.91 ▲2.09
Add New Post /wp-admin/post-new.php1,597 ▲6921.47 ▼1.54647.32 ▼33.0154.60 ▲5.25
Media Library /wp-admin/upload.php1,399 ▼14.15 ▲0.0198.42 ▼13.8543.75 ▼3.40

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
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/parvin-poems/hello.php:5609

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
No plugin tags provided

parvin-poems/hello.php 85% from 13 tests

The entry point to "Parvin Poems" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 168 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("parvin-poems.php" instead of "hello.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
Success! There were no dangerous files found in this plugin5,586 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17175,586

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected