10% website-rating

Code Review | Website Rating

WordPress plugin Website Rating scored10%from 54 tests.

About plugin

  • Plugin page: website-rating
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2013
  • Latest release: Mar 13, 2014
  • Number of updates: 28
  • Update frequency: every 2.9 days
  • Top authors: vinoth06 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,053 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/website-rating/website-rating.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; buffercode_website_rating_info has a deprecated constructor

Server metrics [RAM: ▼1.71MB] [CPU: ▼47.84ms] Passed 4 tests

An overview of server-side resources used by Website Rating
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.28 ▼1.1810.30 ▼28.14
Dashboard /wp-admin2.29 ▼1.0119.48 ▼31.00
Posts /wp-admin/edit.php2.29 ▼1.069.55 ▼39.78
Add New Post /wp-admin/post-new.php2.29 ▼3.5910.84 ▼92.45
Media Library /wp-admin/upload.php2.29 ▼0.9410.66 ▼25.40
Website Rating /wp-admin/options-general.php?page=website-rating/website-rating.php2.2910.78

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_buffercode_website_rating_info
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Website Rating
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.35 ▲0.171.88 ▼0.0442.74 ▲1.38
Dashboard /wp-admin2,201 ▲245.64 ▼0.0385.17 ▲1.3342.64 ▲0.98
Posts /wp-admin/edit.php2,109 ▲91.98 ▲0.0433.84 ▼3.3535.17 ▼4.77
Add New Post /wp-admin/post-new.php1,531 ▲523.46 ▲0.28661.03 ▼1.3652.28 ▼3.90
Media Library /wp-admin/upload.php1,406 ▲64.11 ▼0.08115.27 ▲16.0248.27 ▼0.13
Website Rating /wp-admin/options-general.php?page=website-rating/website-rating.php9071.9931.6841.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in buffercode_website_rating_info is deprecated since version 4.3.0! Use __construct() instead.
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_buffercode_website_rating_info
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% 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)
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=website-rating/website-rating.php
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in buffercode_website_rating_info is deprecated since version 4.3.0! Use __construct() instead.

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/website-rating/website-rating.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% 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
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Rating output Screen), #2 (Before Rating), #3 (Admin Panel Rating)
You can look at the official readme.txt

website-rating/website-rating.php Passed 13 tests

The entry point to "Website Rating" version 1.3 is a PHP file that has certain tags in its header comment area
108 characters long description:
Easy way to display the number of post in that particular category by selecting from admin dashboard widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected244 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP14511223
CSS14021

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity4.25
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png3.77KB2.38KB▼ 36.82%
screenshot-1.png7.60KB2.87KB▼ 62.25%
images/donate.png3.74KB1.75KB▼ 53.38%
screenshot-3.png23.45KB8.48KB▼ 63.84%