84% pawboost-lost-and-found-pets

Code Review | PawBoost Lost and Found Pets

WordPress plugin PawBoost Lost and Found Pets scored84%from 54 tests.

About plugin

  • Plugin page: pawboost-lost-and...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1.0
  • WordPress version: 6.3.1
  • First release: May 30, 2018
  • Latest release: Feb 15, 2019
  • Number of updates: 5
  • Update frequency: every 52.2 days
  • Top authors: pawboost (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,514 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.99ms] Passed 4 tests

A check of server-side resources used by PawBoost Lost and Found Pets
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.74 ▼0.83
Dashboard /wp-admin3.34 ▲0.0448.00 ▼0.96
Posts /wp-admin/edit.php3.39 ▲0.0449.40 ▼4.70
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.80 ▼1.08
Media Library /wp-admin/upload.php3.27 ▲0.0437.99 ▼1.20

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

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

Browser metrics Passed 4 tests

A check of browser resources used by PawBoost Lost and Found Pets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.28 ▼1.401.79 ▲0.0943.95 ▲0.92
Dashboard /wp-admin2,206 ▲185.86 ▲0.99107.65 ▲2.9839.35 ▼5.25
Posts /wp-admin/edit.php2,089 ▼31.99 ▼0.0642.91 ▼3.2835.79 ▼2.70
Add New Post /wp-admin/post-new.php1,533 ▲1423.53 ▲0.46641.19 ▼37.1257.12 ▲3.40
Media Library /wp-admin/upload.php1,388 ▲34.22 ▲0.11111.92 ▼32.3946.40 ▼9.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pawboost-lost-and-found-pets/pb_lfdb_widget.php:12

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: found pets, animals, lost pets, pawboost, birds...

pawboost-lost-and-found-pets/pb_lfdb_widget.php 92% from 13 tests

The primary PHP file in "PawBoost Lost and Found Pets" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pawboost-lost-and-found-pets.php" instead of "pb_lfdb_widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin117 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP21311117

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity9.00
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin