83% themepacific-review-lite

Code Review | Themepacific WordPress Review Lite

WordPress plugin Themepacific WordPress Review Litescored83%from 54 tests.

About plugin

  • Plugin page: themepacific-revi...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Sep 6, 2017
  • Latest release: Sep 6, 2017
  • Number of updates: 5
  • Update frequency: every 37.6 days
  • Top authors: raja3c (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /3,538 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.22MB] [CPU: ▼4.39ms] Passed 4 tests

Analyzing server-side resources used by Themepacific WordPress Review Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2247.01 ▲7.88
Dashboard /wp-admin3.53 ▲0.1851.81 ▼12.13
Posts /wp-admin/edit.php3.65 ▲0.2950.32 ▼3.78
Add New Post /wp-admin/post-new.php6.13 ▲0.24100.52 ▼1.48
Media Library /wp-admin/upload.php3.45 ▲0.2244.47 ▼0.16

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/themepacific-review-lite/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 14 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_crn-wpreview-bestreviews-widget-pro
widget_crn-wpreview-reviews-widget-pro
widget_recent-comments

Browser metrics Passed 4 tests

Themepacific WordPress Review Lite: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲10513.90 ▼0.391.71 ▲0.1142.45 ▲0.47
Dashboard /wp-admin2,258 ▲555.01 ▲0.1499.81 ▼7.3463.07 ▲25.77
Posts /wp-admin/edit.php2,146 ▲462.29 ▲0.3237.71 ▼0.1838.70 ▲6.56
Add New Post /wp-admin/post-new.php6,452 ▲4,92621.73 ▲4.20968.21 ▲342.9272.02 ▲13.80
Media Library /wp-admin/upload.php1,431 ▲344.37 ▲0.15115.14 ▲12.8982.04 ▲35.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • can_compress_scripts
    • widget_crn-wpreview-bestreviews-widget-pro
    • widget_crn-wpreview-reviews-widget-pro
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themepacific-review-lite/admin/crn_post_meta.php:68
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themepacific-review-lite/public/themepacific_wpreview_functions.php:247
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themepacific-review-lite/admin/meta_box.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === Themepacific WordPress Review Lite=== )
You can look at the official readme.txt

themepacific-review-lite/tpcrn_wpreview.php 85% from 13 tests

The entry point to "Themepacific WordPress Review Lite" version 1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("themepacific-review-lite.php" instead of "tpcrn_wpreview.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

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
Good job! No executable or dangerous file extensions detected1,370 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7395103803
CSS22323527
JavaScript213240

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity14.17
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods46
▷ Static methods00.00%
▷ Public methods4291.30%
▷ Protected methods00.00%
▷ Private methods48.70%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
(invalid) admin/images/favicon.png1.12KB0.00KB▼ 100.00%