84% getdeals

Code Review | GetDeals

WordPress plugin GetDeals scored84%from 54 tests.

About plugin

  • Plugin page: getdeals
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 18, 2018
  • Latest release: Mar 18, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: idhavalmehta (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /792 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.06ms] Passed 4 tests

An overview of server-side resources used by GetDeals
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0723.83 ▼12.41
Dashboard /wp-admin3.32 ▲0.0249.98 ▼2.15
Posts /wp-admin/edit.php3.37 ▲0.0244.86 ▼1.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0282.26 ▼28.59
Media Library /wp-admin/upload.php3.25 ▲0.0233.65 ▲0.56
GetDeals /wp-admin/options-general.php?page=getdeals3.1929.04

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for GetDeals
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲14713.56 ▼0.738.28 ▲6.6337.82 ▼3.67
Dashboard /wp-admin2,207 ▲165.87 ▲0.99105.42 ▼1.5340.78 ▼4.32
Posts /wp-admin/edit.php2,093 ▲71.97 ▲0.0039.45 ▲4.1835.03 ▼2.39
Add New Post /wp-admin/post-new.php1,536 ▲323.03 ▼0.19634.24 ▼19.3655.37 ▼1.23
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0395.59 ▼5.1540.66 ▼1.37
GetDeals /wp-admin/options-general.php?page=getdeals9132.0522.0033.29

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=getdeals
    • > Notice in wp-content/plugins/getdeals/admin/class-getdeals-admin.php+247
    Trying to access array offset on value of type bool

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: search engine, snapdeal, getdeals, free, amazon india...

getdeals/getdeals.php Passed 13 tests

The main PHP file in "GetDeals" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
92 characters long description:
Add the GetDeals search engine and price comparison functionality to your WordPress website.

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 plugin519 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10158508345
JavaScript24035174

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity1.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected