83% rent-of-angry-cats

Code Review | Daily and hourly rent of cars, apartments, things, cats.

WordPress plugin Daily and hourly rent of cars, apartments, things, cats. scored83%from 54 tests.

About plugin

  • Plugin page: rent-of-angry-cats
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.9
  • WordPress version: 6.3.1
  • First release: Oct 1, 2021
  • Latest release: Feb 9, 2022
  • Number of updates: 11
  • Update frequency: every 11.9 days
  • Top authors: superpuperlesha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.28MB] [CPU: ▼0.23ms] Passed 4 tests

Analyzing server-side resources used by Daily and hourly rent of cars, apartments, things, cats.
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2840.26 ▲1.29
Dashboard /wp-admin3.58 ▲0.2850.94 ▲2.69
Posts /wp-admin/edit.php3.69 ▲0.3446.27 ▲0.74
Add New Post /wp-admin/post-new.php6.16 ▲0.2785.07 ▼5.62
Media Library /wp-admin/upload.php3.50 ▲0.2738.35 ▲5.23

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 61 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
dscc_admin_listitem_count
widget_recent-comments
dscc_admin_filter_radius
widget_theysaidso_widget
can_compress_scripts
dscc_filter_type_show
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Daily and hourly rent of cars, apartments, things, cats.: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9614.47 ▲0.171.99 ▲0.2344.19 ▲2.34
Dashboard /wp-admin2,215 ▲304.80 ▼1.09102.81 ▼32.2146.70 ▲1.00
Posts /wp-admin/edit.php2,094 ▲232.00 ▼0.0033.99 ▼2.8332.87 ▼3.05
Add New Post /wp-admin/post-new.php1,549 ▲3518.58 ▲1.11588.73 ▼109.5452.92 ▼3.41
Media Library /wp-admin/upload.php1,397 ▲94.24 ▲0.02100.64 ▼13.3244.55 ▼0.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Rent_Angry_Cat_ns\\Rent_Angry_Cat' not found in wp-content/plugins/rent-of-angry-cats/templates/dscc_ttable.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rent-of-angry-cats/templates/dscc_items.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Rent_Angry_Cat_ns\\Rent_Angry_Cat' not found in wp-content/plugins/rent-of-angry-cats/templates/dscc_gettemplatepage.php:7
    • > PHP Notice
      Undefined variable: SearchBy in wp-content/plugins/rent-of-angry-cats/templates/dscc_items.php on line 17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: You can take inspiration from this readme.txt

rent-of-angry-cats/rent_angry_cat.php 77% from 13 tests

The entry point to "Daily and hourly rent of cars, apartments, things, cats." version 1.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rent-of-angry-cats.php" instead of "rent_angry_cat.php")
  • Requires at least: Required version does not match the one declared in readme.txt ("3.9" instead of "3.0.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin7,220 lines of code in 41 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript238024033,676
CSS9185142,028
PHP61631641,130
PO File2142151335
SVG10051

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity47.50
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods33
▷ Static methods2163.64%
▷ Public methods33100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions523.81%
▷ Anonymous functions1676.19%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png11.91KB6.10KB▼ 48.79%
public/lightgallery/img/video-play.png0.80KB1.05KB0.00%
public/lightgallery/img/vimeo-play.png1.45KB1.56KB0.00%
assets/banner-772x250.png17.69KB16.99KB▼ 3.92%
public/lightgallery/img/youtube-play.png2.64KB2.37KB▼ 10.06%