84% pyrfekt-cat

Code Review | Pyrfekt Cat

WordPress plugin Pyrfekt Cat scored 84% from 54 tests.

About plugin

  • Plugin page: pyrfekt-cat
  • Plugin version: 1.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 13, 2020
  • Latest release: Jul 14, 2020
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: mateuszkozlowski (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 425 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Pyrfekt Cat
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.48 ▼1.51
Dashboard /wp-admin3.31 ▲0.0053.49 ▲7.05
Posts /wp-admin/edit.php3.36 ▲0.0045.65 ▼3.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.56 ▼7.33
Media Library /wp-admin/upload.php3.23 ▲0.0034.76 ▼1.44

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

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

Browser metrics Passed 4 tests

Pyrfekt Cat: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.18 ▼1.351.66 ▼0.0642.91 ▼0.78
Dashboard /wp-admin2,203 ▲154.87 ▼1.03101.41 ▼12.8338.69 ▼4.92
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0136.28 ▼8.0932.61 ▼3.14
Add New Post /wp-admin/post-new.php1,542 ▲1218.19 ▼0.07660.16 ▲56.3955.98 ▲2.29
Media Library /wp-admin/upload.php1,391 ▲34.27 ▲0.09100.35 ▲2.2241.97 ▼0.65

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/pyrfekt-cat/pyrfekt-cat.php:42

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
4 plugin tags: automatic, yoast, seo, category

pyrfekt-cat/pyrfekt-cat.php Passed 13 tests

"Pyrfekt Cat" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
138 characters long description:
Easily change the order in which categories of posts are displayed to display the primary Yoast category first. No configuration required.

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 plugin22 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2111622

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin