84% elpix-rate-post-in-comment

Code Review | elpix Rate Post in Comment

WordPress plugin elpix Rate Post in Comment scored84%from 54 tests.

About plugin

  • Plugin page: elpix-rate-post-i...
  • Plugin version: 1.1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Jul 23, 2013
  • Latest release: Jan 28, 2014
  • Number of updates: 5
  • Update frequency: every 37.8 days
  • Top authors: elpix-GmbH (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,811 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.42ms] Passed 4 tests

An overview of server-side resources used by elpix Rate Post in Comment
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0533.92 ▼3.14
Dashboard /wp-admin3.34 ▼0.0043.09 ▼19.19
Posts /wp-admin/edit.php3.46 ▲0.1048.14 ▲3.69
Add New Post /wp-admin/post-new.php5.92 ▲0.0477.20 ▼11.96
Media Library /wp-admin/upload.php3.27 ▲0.0433.72 ▼3.40

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for elpix Rate Post in Comment
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.44 ▼0.917.94 ▲6.2738.60 ▼3.46
Dashboard /wp-admin2,200 ▲205.60 ▼0.0694.69 ▲5.7942.88 ▲5.83
Posts /wp-admin/edit.php2,102 ▼11.99 ▲0.0535.46 ▲0.4128.51 ▼9.78
Add New Post /wp-admin/post-new.php1,530 ▲422.99 ▲0.00673.98 ▲12.8454.73 ▼2.88
Media Library /wp-admin/upload.php1,399 ▼44.30 ▲0.0994.23 ▼8.3739.35 ▼5.56

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elpix-rate-post-in-comment/elpix-rate-post-in-comment.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === elpix-rate-post-in-comment === )
Please take inspiration from this readme.txt

elpix-rate-post-in-comment/elpix-rate-post-in-comment.php 92% from 13 tests

The main PHP file in "elpix Rate Post in Comment" ver. 1.1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin315 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP22395158
PO File41224100
CSS12035
JavaScript14322

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions13
▷ Named functions13100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/star-active.png1.34KB1.26KB▼ 6.20%
images/star.png1.33KB1.26KB▼ 4.99%