90% pro-author-review

Code Review | Pro Author Review

WordPress plugin Pro Author Review scored90%from 54 tests.

About plugin

  • Plugin page: pro-author-review
  • Plugin version: 1.1
  • PHP compatiblity: 7.0.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.0-5.3
  • WordPress version: 6.3.1
  • First release: Sep 24, 2019
  • Latest release: Nov 23, 2019
  • Number of updates: 6
  • Update frequency: every 10.0 days
  • Top authors: mostafaabd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /542 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼11.22ms] Passed 4 tests

Analyzing server-side resources used by Pro Author Review
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.48 ▼5.91
Dashboard /wp-admin3.43 ▲0.0848.60 ▼16.83
Posts /wp-admin/edit.php3.48 ▲0.1249.85 ▼2.08
Add New Post /wp-admin/post-new.php5.98 ▲0.0990.06 ▼20.05
Media Library /wp-admin/upload.php3.29 ▲0.0639.17 ▲3.38
Settings /wp-admin/edit.php?post_type=parreview&page=pro-author-review3.2632.44
Add new /wp-admin/post-new.php?post_type=parreview3.3343.35
All reviews /wp-admin/edit.php?post_type=parreview3.3337.74

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 70 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
pro_author_review
widget_pro_author_reviews

Browser metrics Passed 4 tests

Pro Author Review: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6414.72 ▲0.141.93 ▼0.2142.10 ▲0.67
Dashboard /wp-admin2,226 ▲465.63 ▼0.0386.12 ▼12.1040.82 ▼2.05
Posts /wp-admin/edit.php2,134 ▲312.02 ▲0.0038.55 ▼3.9133.63 ▼3.30
Add New Post /wp-admin/post-new.php6,322 ▲4,79626.45 ▲3.33955.49 ▲350.1839.74 ▼4.68
Media Library /wp-admin/upload.php1,431 ▲314.27 ▲0.0496.68 ▼6.0843.43 ▼5.06
Settings /wp-admin/edit.php?post_type=parreview&page=pro-author-review8272.0323.8625.88
Add new /wp-admin/post-new.php?post_type=parreview1,6193.0256.4833.78
All reviews /wp-admin/edit.php?post_type=parreview1,0951.9931.0331.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_theysaidso_widget
    • widget_pro_author_reviews
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • pro_author_review

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: You can look at the official readme.txt

pro-author-review/pro-author-review.php Passed 13 tests

The entry point to "Pro Author Review" version 1.1 is a PHP file that has certain tags in its header comment area
44 characters long description:
Allows a post author or users to rate posts.

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
There were no executable files found in this plugin11,433 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript182,0866307,670
PHP185163772,404
CSS9154331,345
SVG10014

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity34.50
▷ Minimum class complexity2.00
▷ Maximum class complexity76.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods78
▷ Static methods2126.92%
▷ Public methods5975.64%
▷ Protected methods00.00%
▷ Private methods1924.36%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants213.33%
▷ Class constants1386.67%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin