79% post-star

Code Review | Post Star

WordPress plugin Post Star scored79%from 54 tests.

About plugin

  • Plugin page: post-star
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 6.3.1
  • First release: Jan 8, 2014
  • Latest release: Jan 8, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: leobaiano (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,405 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.24ms] Passed 4 tests

Server-side resources used by Post Star
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0343.27 ▲4.26
Dashboard /wp-admin3.33 ▲0.0252.41 ▼0.31
Posts /wp-admin/edit.php3.38 ▲0.0247.12 ▼3.43
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.15 ▼13.42
Media Library /wp-admin/upload.php3.25 ▲0.0237.74 ▲4.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: 1 new table, 6 new options
New tables
wp_lb_ps_rating
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Post Star
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲13913.68 ▼0.9410.86 ▲9.1142.96 ▲1.15
Dashboard /wp-admin2,198 ▲215.63 ▲0.0193.89 ▲3.7144.19 ▼0.08
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0234.03 ▼2.8437.26 ▲2.82
Add New Post /wp-admin/post-new.php1,540 ▲1218.36 ▼4.63632.31 ▼30.9977.18 ▲23.84
Media Library /wp-admin/upload.php1,394 ▼34.19 ▲0.0298.49 ▼9.5242.85 ▼3.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie tables were found after uninstall: 1 table
    • wp_lb_ps_rating
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 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 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Plugin Post Star in action) image required
You can look at the official readme.txt

post-star/post-star.php 92% from 13 tests

This is the main PHP file of "Post Star" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
No dangerous file extensions were detected371 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript33455178
PHP13223117
Markdown121039
CSS13637

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods228.57%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.03MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
libs/jrating/icons/stars.png0.99KB1.27KB0.00%
screenshot-1.png24.25KB8.46KB▼ 65.12%
libs/jrating/icons/small.png0.42KB0.49KB0.00%
libs/jrating/icons/bg_jRatingInfos.png0.56KB0.77KB0.00%