84% best-rating-pageviews

Code Review | Best Rating & Pageviews

WordPress plugin Best Rating & Pageviews scored84%from 54 tests.

About plugin

  • Plugin page: best-rating-pagev...
  • Plugin version: 3.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 11, 2016
  • Latest release: Mar 22, 2023
  • Number of updates: 23
  • Update frequency: every 105.0 days
  • Top authors: icopydoc (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /3,364 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.53ms] Passed 4 tests

A check of server-side resources used by Best Rating & Pageviews
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0635.44 ▼5.70
Dashboard /wp-admin3.34 ▲0.0445.89 ▼6.71
Posts /wp-admin/edit.php3.46 ▲0.1043.05 ▼4.58
Add New Post /wp-admin/post-new.php5.92 ▲0.0481.04 ▼9.14
Media Library /wp-admin/upload.php3.26 ▲0.0431.33 ▲0.52
Settings /wp-admin/admin.php?page=brpv-settings3.2431.06
Statistics /wp-admin/admin.php?page=brpv-statistics3.2630.66

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
brpv_posts_type_arr
brpv_hover_color
brpv_main_color
can_compress_scripts
theysaidso_admin_options
db_upgraded
brpv_not_count_bots

Browser metrics Passed 4 tests

This is an overview of browser requirements for Best Rating & Pageviews
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9914.46 ▲0.082.26 ▼0.1438.17 ▼8.96
Dashboard /wp-admin2,223 ▲375.84 ▲0.9198.72 ▼7.7840.51 ▼2.04
Posts /wp-admin/edit.php2,112 ▲232.04 ▲0.0533.52 ▼6.7335.84 ▲0.79
Add New Post /wp-admin/post-new.php1,552 ▲3823.05 ▲5.56588.61 ▼96.3959.15 ▲3.55
Media Library /wp-admin/upload.php1,411 ▲204.14 ▼0.0795.76 ▼14.5742.66 ▼2.19
Settings /wp-admin/admin.php?page=brpv-settings1,5102.2751.5839.83
Statistics /wp-admin/admin.php?page=brpv-statistics1,2101.9627.6232.19

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/best-rating-pageviews/classes/system/class-brpv-statistics-feed-wp-list-table.php:2

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-3.png) image required
You can look at the official readme.txt

best-rating-pageviews/best-rating-pageviews.php 92% from 13 tests

This is the main PHP file of "Best Rating & Pageviews" version 3.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 188 characters long)

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
Everything looks great! No dangerous files found in this plugin1,989 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP141584601,603
PO File1117196215
JavaScript2718136
CSS20135

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.30
Average class complexity16.71
▷ Minimum class complexity1.00
▷ Maximum class complexity59.00
Average method complexity2.26
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes342.86%
Methods76
▷ Static methods45.26%
▷ Public methods5471.05%
▷ Protected methods45.26%
▷ Private methods1823.68%
Functions27
▷ Named functions2177.78%
▷ Anonymous functions622.22%
Constants11
▷ Global constants11100.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.30MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png133.70KB49.90KB▼ 62.68%
screenshot-1.png95.27KB36.11KB▼ 62.09%
screenshot-2.png74.30KB27.42KB▼ 63.09%