94% felicette-pedigree-litters

Code Review | Felicette Pedigree Litters

WordPress plugin Felicette Pedigree Litters scored 94% from 54 tests.

About plugin

  • Plugin page: felicette-pedigre...
  • Plugin version: 0.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 5.9.2
  • First release: Nov 12, 2016
  • Latest release: Aug 15, 2017
  • Number of updates: 18
  • Update frequency: every 15.1 days
  • Top authors: burria (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,001 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼305.07ms] Passed 4 tests

A check of server-side resources used by Felicette Pedigree Litters
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1155.73 ▼4.33
Dashboard /wp-admin3.50 ▲0.0935.42 ▼0.48
Posts /wp-admin/edit.php3.73 ▲0.0841.46 ▲5.37
Add New Post /wp-admin/post-new.php6.96 ▼0.0198.48 ▼1,215.21
Media Library /wp-admin/upload.php3.37 ▲0.0826.23 ▼0.25
Felicette /wp-admin/edit.php?post_type=felicette_pl_type3.4126.85
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=felicette_pl_type3.3726.93
Add New /wp-admin/post-new.php?post_type=felicette_pl_type3.7544.07
Felicette Configuration /wp-admin/options-general.php?page=felicette-options3.3422.17

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Felicette Pedigree Litters
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,846 ▲9215.87 ▲0.107.60 ▼0.562.62 ▼0.78
Dashboard /wp-admin2,938 ▲806.03 ▼0.23118.93 ▼28.36203.85 ▲42.24
Posts /wp-admin/edit.php2,735 ▲473.14 ▼0.11105.70 ▲36.10165.99 ▼43.12
Add New Post /wp-admin/post-new.php1,690 ▼6716.23 ▼5.67417.31 ▼35.47217.58 ▲53.94
Media Library /wp-admin/upload.php1,744 ▲435.54 ▲0.00151.04 ▲6.03219.54 ▲11.85
Felicette /wp-admin/edit.php?post_type=felicette_pl_type1,4123.1064.87115.78
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=felicette_pl_type1,7482.7856.19120.46
Add New /wp-admin/post-new.php?post_type=felicette_pl_type3,0769.98195.71232.83
Felicette Configuration /wp-admin/options-general.php?page=felicette-options1,1372.4956.23108.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/post-new.php?post_type=felicette_pl_type
    • > Notice in wp-content/plugins/felicette-pedigree-litters/felicette-core/customtype-fields.php+58
    Undefined variable: felicettemums
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=felicette_pl_type
    • > Warning in wp-content/plugins/felicette-pedigree-litters/felicette-core/customtype-fields.php+92
    sizeof(): Parameter must be an array or an object that implements Countable
    • > GET request to /wp-admin/post-new.php?post_type=felicette_pl_type
    • > Notice in wp-content/plugins/felicette-pedigree-litters/felicette-core/customtype-fields.php+92
    Undefined variable: felicettedads

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: dog, breed, pets, felicette, pedigree...

felicette-pedigree-litters/felicette-pedigree-litters.php Passed 13 tests

Analyzing the main PHP file in "Felicette Pedigree Litters" version 0.3.7
34 characters long description:
Creates a content type for litters

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected708 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP821924519
CSS32910189

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/femaleico.png0.33KB0.35KB0.00%
images/icon.png0.62KB0.39KB▼ 36.98%
images/maleico.png0.34KB0.38KB0.00%