79% proofratings

Code Review | Proofratings

WordPress plugin Proofratings scored79%from 54 tests.

About plugin

  • Plugin page: proofratings
  • Plugin version: 1.1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 1, 2021
  • Latest release: Nov 2, 2022
  • Number of updates: 77
  • Update frequency: every 5.6 days
  • Top authors: proofratings (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,156 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.75MB] [CPU: ▲5.08ms] Passed 4 tests

An overview of server-side resources used by Proofratings
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.09 ▲0.6345.95 ▲5.85
Dashboard /wp-admin4.08 ▲0.7855.89 ▲6.26
Posts /wp-admin/edit.php4.14 ▲0.7853.36 ▲8.01
Add New Post /wp-admin/post-new.php6.69 ▲0.8189.05 ▲0.19
Media Library /wp-admin/upload.php4.01 ▲0.7950.12 ▲13.98

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 192 new files
Database: 1 new table, 7 new options
New tables
wp_proofratings
New WordPress options
widget_recent-posts
proofratings_version
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Proofratings
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,665 ▼1,10611.14 ▼3.545.72 ▲3.8319.37 ▼19.42
Dashboard /wp-admin2,247 ▲595.88 ▲0.05113.78 ▲7.2280.82 ▲37.60
Posts /wp-admin/edit.php2,148 ▲592.06 ▲0.0736.27 ▼3.8837.33 ▼4.52
Add New Post /wp-admin/post-new.php1,305 ▼21414.67 ▼8.38284.18 ▼400.3815.18 ▼40.99
Media Library /wp-admin/upload.php1,435 ▲474.22 ▲0.05110.40 ▲10.9180.56 ▲35.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_proofratings
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • proofratings_version
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

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
These attributes need your attention: Please take inspiration from this readme.txt

proofratings/proofratings.php 92% from 13 tests

The main file in "Proofratings" v. 1.1.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin8,881 lines of code in 134 files:
LanguageFilesBlank linesComment linesLines of code
PHP201,1321,1704,270
CSS6487312,350
SVG9474251,628
JavaScript1411545633

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity35.53
▷ Minimum class complexity2.00
▷ Maximum class complexity97.00
Average method complexity3.96
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods195
▷ Static methods73.59%
▷ Public methods15881.03%
▷ Protected methods63.08%
▷ Private methods3115.90%
Functions17
▷ Named functions1058.82%
▷ Anonymous functions741.18%
Constants5
▷ Global constants5100.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
34 PNG files occupy 0.33MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/analytics.png4.86KB2.61KB▼ 46.29%
assets/images/icon-getapp.png2.84KB1.34KB▼ 52.87%
assets/images/icon-homeadvisor.png26.58KB9.93KB▼ 62.64%
assets/images/icon-google.png3.12KB1.42KB▼ 54.59%
assets/images/icon-trustpilot.png2.92KB1.32KB▼ 54.89%