90% efavourite-posts

Code Review | EFavourite Posts

WordPress plugin EFavourite Posts scored90%from 54 tests.

About plugin

  • Plugin page: efavourite-posts
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2018
  • Latest release: Oct 1, 2019
  • Number of updates: 24
  • Update frequency: every 22.9 days
  • Top authors: excellentwebworld123 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

60+ active /2,669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.78ms] Passed 4 tests

This is a short check of server-side resources used by EFavourite Posts
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.71 ▲5.16
Dashboard /wp-admin3.32 ▲0.0147.02 ▲1.57
Posts /wp-admin/edit.php3.37 ▲0.0144.73 ▼0.87
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.11 ▼8.99
Media Library /wp-admin/upload.php3.24 ▲0.0134.80 ▼2.82

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options
efav_multi_posts_options
efav_options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by EFavourite Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲19113.69 ▼0.876.50 ▲4.9143.02 ▲3.21
Dashboard /wp-admin2,222 ▲344.88 ▼0.03112.47 ▲8.8342.19 ▲3.39
Posts /wp-admin/edit.php2,105 ▲162.07 ▲0.0634.37 ▼6.7434.80 ▼0.18
Add New Post /wp-admin/post-new.php1,542 ▲2323.37 ▲0.13639.15 ▼31.3356.41 ▼0.81
Media Library /wp-admin/upload.php1,401 ▲134.27 ▲0.05106.35 ▲1.7246.42 ▲1.86

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • efav_options
    • widget_theysaidso_widget
    • efav_multi_posts_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: favourite posts, posts, favourite, favourites

efavourite-posts/efavourite-posts.php Passed 13 tests

The main file in "EFavourite Posts" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
89 characters long description:
Excellent Webworld is an IT company focus on Web Development and Application Development.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin1,056 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP58112922
PO File1343894
JavaScript12036
CSS2004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions46
▷ Named functions46100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/efav-starwithheart.png1.80KB1.47KB▼ 18.17%
img/efav-star.png0.92KB0.81KB▼ 11.19%
img/efav-heart.png0.78KB0.64KB▼ 17.88%