89% wp-parsi-lovely-bot

Code Review | WP-Parsi Lovely Bots

WordPress plugin WP-Parsi Lovely Bots scored 89% from 54 tests.

About plugin

  • Plugin page: wp-parsi-lovely-bot
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.2
  • WordPress version: 6.3.1
  • First release: Jun 3, 2012
  • Latest release: Jun 4, 2012
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: parselearn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 954 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.53ms] Passed 4 tests

A check of server-side resources used by WP-Parsi Lovely Bots
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.66 ▼3.86
Dashboard /wp-admin3.31 ▲0.0049.91 ▲4.00
Posts /wp-admin/edit.php3.36 ▲0.0048.08 ▲1.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.69 ▼17.53
Media Library /wp-admin/upload.php3.23 ▲0.0037.90 ▲2.17

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP-Parsi Lovely Bots
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.19 ▼1.444.45 ▲2.7342.01 ▼11.31
Dashboard /wp-admin2,209 ▲244.87 ▲0.04110.41 ▼1.9338.03 ▼3.76
Posts /wp-admin/edit.php2,092 ▼02.04 ▲0.0238.86 ▼1.0536.48 ▼0.02
Add New Post /wp-admin/post-new.php1,542 ▲2818.53 ▲0.84646.14 ▲39.7857.98 ▲6.39
Media Library /wp-admin/upload.php1,385 ▼34.20 ▲0.01103.35 ▲0.8442.95 ▼0.63

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-parsi-lovely-bot === )
The official readme.txt might help

wp-parsi-lovely-bot/wpp-lovely-bots.php 92% from 13 tests

Analyzing the main PHP file in "WP-Parsi Lovely Bots" version 1.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-parsi-lovely-bot.php" instead of "wpp-lovely-bots.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 plugin126 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1915126

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.72
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%
Functions9
▷ Named functions9100.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
PNG images were not found in this plugin